19 lines
484 B
PHP
19 lines
484 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Cqs\Actions\ProductIncos;
|
|
|
|
use App\Contracts\ActionInput;
|
|
use Domain\Models\ValueObjects\Entities\ProductId;
|
|
use Webmozart\Assert\Assert;
|
|
|
|
final readonly class AssociateProductIncoInput implements ActionInput
|
|
{
|
|
public function __construct(
|
|
public ProductId $productId,
|
|
public int $no_art,
|
|
) {
|
|
Assert::greaterThanEq($this->no_art, 1, 'The INCO article number must be greater than or equal to 1.');
|
|
}
|
|
}
|