document = $document; if (!empty($this->document->id)) { $this->documentId = $document->id; } } /** * Execute the job. */ public function handle() { $this->document->analyze(); $this->document = null; } /** * The unique ID of the job. * * @return string */ public function uniqueId() { return $this->document->id; } }