payment = $payment; $this->deleteExistingFile = $deleteExistingFile; } /** * Hands the rendering to the receipt itself and always reports success. * The number handed back is a leftover of an older queue contract — * nothing downstream reads it. */ public function handle(): int { $receipt = $this->payment; $receipt->generatePDF('payment', $receipt->payment_number, $this->deleteExistingFile); return 0; } }