estimate = $estimate; $this->deleteExistingFile = $deleteExistingFile; } /** * Hands the work to the document itself and always reports success — the * return value is a leftover of the queue contract; nothing reads it. */ public function handle(): int { $document = $this->estimate; $document->generatePDF('estimate', $document->estimate_number, $this->deleteExistingFile); return 0; } }