src/Scenario/Scenario.php
public function isAllowedToRun(EventInterface $event): bool
    {
        if (!$this->checkNeededIncomingStates($event)) {
            return false;
        }

        if (!$this->checkNeededOutgoingStates($event)) {
            return false;
        }

        if (!$this->checkNeededStates($event)) {
            return false;
        }

        if (!$this->checkForbiddenStates($event)) {
            return false;
        }

        if (!$this->checkNeededStatedClass($event)) {
            return false;
        }

        if (!$this->checkNeededStatedObject($event)) {
            return false;
        }

        return true;
    }
public function isAllowedToRun(EventInterface $event): bool
    {
        if (!$this->checkNeededIncomingStates($event)) {
            return false;
        }

        if (!$this->checkNeededOutgoingStates($event)) {
            return false;
        }

        if (!$this->checkNeededStates($event)) {
            return false;
        }

        if (!$this->checkForbiddenStates($event)) {
            return false;
        }

        if (!$this->checkNeededStatedClass($event)) {
            return false;
        }

        if (!$this->checkNeededStatedObject($event)) {
            return false;
        }

        return true;
    }
{@inheritdoc}