ldc-boutique-cnc-sable/domain/Models/ValueObjects/IncoId.php

17 lines
292 B
PHP
Raw Permalink Normal View History

2026-06-14 21:32:07 +02:00
<?php
declare(strict_types=1);
namespace Domain\Models\ValueObjects;
final readonly class IncoId
{
public function __construct(
public int $value
) {
if ($value <= 0) {
throw new \DomainException('IncoId must be a positive integer.');
}
}
}