src/State/ExecutionLog/StepInfo.php
<?php
declare(strict_types=1);
namespace PHPWorkflow\State\ExecutionLog;
class StepInfo
{
public const NESTED_WORKFLOW = 'STEP_NESTED_WORKFLOW';
public const LOOP_START = 'STEP_LOOP_START';
public const LOOP_ITERATION = 'STEP_LOOP_ITERATION';
public const LOOP_END = 'STEP_LOOP_END';
private string $info;
private array $context;
public function __construct(string $info, array $context)
{
$this->info = $info;
$this->context = $context;
}
public function getInfo(): string
{
return $this->info;
}
public function getContext(): array
{
return $this->context;
}
}