feat: expand client jobcard and reporting workflows
This commit is contained in:
@@ -7,8 +7,8 @@ final class JobcardReference
|
||||
{
|
||||
public static function generate(int $sequence, ?int $year = null): string
|
||||
{
|
||||
if ($sequence < 1) {
|
||||
throw new \InvalidArgumentException('Sequence must be positive.');
|
||||
if ($sequence < 1 || $sequence > 999999) {
|
||||
throw new \InvalidArgumentException('Sequence must be between 1 and 999999.');
|
||||
}
|
||||
$year ??= (int) date('Y');
|
||||
if ($year < 2000 || $year > 9999) {
|
||||
|
||||
Reference in New Issue
Block a user