src/Behavior/WaitStateBehavior.php
public function signal(Execution $execution, $signal, array $variables = [], array $delegation = [])
    {
        foreach ($variables as $k => $v) {
            $execution->setVariable($k, $v);
        }
        
        if ($signal === null) {
            return $execution->takeAll(null, [
                $execution
            ]);
        }
        
        return $execution->take($signal);
    }
public function signal(Execution $execution, $signal, array $variables = [], array $delegation = [])
    {
        foreach ($variables as $k => $v) {
            $execution->setVariable($k, $v);
        }
        
        if ($signal === null) {
            return $execution->takeAll(null, [
                $execution
            ]);
        }
        
        return $execution->take($signal);
    }
{@inheritdoc}