public function isSatisfied(\FSM\ContextInterface $context) { return $context->getContextState() == 'active'; }
/** * Internal machine context state getter * * @param ContextInterface $context * @return StateInterface */ private function getContextState(ContextInterface $context) { return $this->statesFactory->getState($context->getContextState()); }