exports = $exports; $this->transactions = $transactions; } /** * @param string $hours E.g. "12,5"; empty for the approved hours. * * @throws BillingExportNotFound * @throws ExportNotDraft * @throws JobNotInDraft * @throws InvalidBillableHours */ public function execute(int $exportId, int $jobId, int $workTypeId, string $hours): void { $quarters = DraftJob::parseHours($hours); $this->changeDraft($exportId, function (BillingExport $export) use ($jobId, $workTypeId, $quarters): void { $export->setBillableQuarters($jobId, $workTypeId, $quarters); }); } }