Files

18 lines
414 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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) {}
}