Record used material on tasks and suggest workflow steps' default materials
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Catalog\Domain\Exceptions;
|
||||
|
||||
use App\Modules\Shared\Domain\Exceptions\DomainException;
|
||||
|
||||
/**
|
||||
* A step's default material has no item or no valid quantity. $stepIndex
|
||||
* and $materialIndex count from 0 when known.
|
||||
*/
|
||||
final class InvalidWorkflowStepMaterial extends DomainException
|
||||
{
|
||||
public function __construct(public readonly ?int $stepIndex = null, public readonly ?int $materialIndex = null)
|
||||
{
|
||||
parent::__construct('A default material needs an item and a quantity greater than zero.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user