ldc-mesbr-app/src/Domain/Models/ValueObjects/PrintableCoupon/UnprintedReason.php
2026-10-14 14:29:06 +02:00

16 lines
337 B
PHP

<?php
declare(strict_types=1);
namespace Domain\Models\ValueObjects\PrintableCoupon;
final readonly class UnprintedReason
{
public function __construct(
public string $value,
) {
if (mb_trim($this->value) === '') {
throw new \DomainException('Unprinted reason cannot be empty.');
}
}
}