2026-08-12 15:45:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-08-14 15:38:10 +02:00
|
|
|
namespace Domain\Models\ValueObjects\Inco;
|
2026-08-12 15:45:29 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents the storage/conservation conditions of a product.
|
|
|
|
|
*
|
|
|
|
|
* Maps to CONDIT_CONSERV.
|
|
|
|
|
*/
|
|
|
|
|
final readonly class StorageCondition
|
|
|
|
|
{
|
|
|
|
|
public function __construct(
|
|
|
|
|
public readonly string $instructions,
|
|
|
|
|
) {
|
|
|
|
|
if (empty(trim($this->instructions))) {
|
|
|
|
|
throw new \DomainException(
|
|
|
|
|
'Invalid instructions: must not be empty'
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|