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