ldc-mesbr-app/src/Domain/Models/ValueObjects/PrintableCoupon/UnprintedReason.php

17 lines
337 B
PHP
Raw Normal View History

<?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.');
}
}
}