getBegin()) { throw new \Exception('Cannot handle invoice items without start date'); } return [ $invoiceItem->getBegin()->format('W') ]; } public function getId(): string { return 'weekly'; } }