/** * Evaluates the guard for the given event. * * @param EventInterface $event * * @return bool * * @since Method available since Release 2.0.0 */ private function evaluateGuard(TransitionEventInterface $event) { if ($event->getGuard() === null) { return true; } return call_user_func($event->getGuard(), $event, $this->getPayload(), $this); }