23 lines
533 B
PHP
23 lines
533 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\TimeTracking\Domain\Exceptions;
|
|
|
|
use App\Modules\Shared\Domain\Exceptions\DomainException;
|
|
|
|
/**
|
|
* A week cannot be approved while any of its entries lacks a billing note
|
|
* (docs/ui-timesheet.md 6).
|
|
*/
|
|
final class BillingNotesMissing extends DomainException
|
|
{
|
|
/**
|
|
* @param list<int> $entryIds
|
|
*/
|
|
public function __construct(public readonly array $entryIds)
|
|
{
|
|
parent::__construct(count($entryIds).' time entries have no billing note.');
|
|
}
|
|
}
|