src/Scenario/Scenario.php
private function checkNeededStatedClass(EventInterface $event): bool
    {
        $neededStatedClass = $this->getNeededStatedClass();
        if (empty($neededStatedClass)) {
            return true;
        }

        return $neededStatedClass === $event->getObserved()->getStatedClassName();
    }
private function checkNeededStatedClass(EventInterface $event): bool
    {
        $neededStatedClass = $this->getNeededStatedClass();
        if (empty($neededStatedClass)) {
            return true;
        }

        return $neededStatedClass === $event->getObserved()->getStatedClassName();
    }
@param EventInterface $event

@return bool