exports = $exports; $this->transactions = $transactions; } /** * @throws BillingExportNotFound * @throws ExportNotDraft * @throws InvalidBillingPeriod */ public function execute(int $exportId, string $period): void { $this->changeDraft($exportId, function (BillingExport $export) use ($period): void { $export->changePeriod($period); }); } }