18 lines
414 B
PHP
18 lines
414 B
PHP
<?php
|
||
|
||
namespace App\Process\Tester\Scenarios;
|
||
|
||
use App\Process\Tester\SandboxContext;
|
||
use Closure;
|
||
|
||
/**
|
||
* One event of a scenario: what happens (in plain words) and how – through the entry point the real application uses.
|
||
*/
|
||
final readonly class ScenarioEvent
|
||
{
|
||
/**
|
||
* @param Closure(SandboxContext): void $run
|
||
*/
|
||
public function __construct(public string $label, public Closure $run) {}
|
||
}
|