public function isSatisfied(\FSM\ContextInterface $context) { return $context->getContextState() == 'active'; }
/** * Internal machine context state setter * * @param ContextInterface $context * @param StateInterface $state * @return void */ private function setContextState(ContextInterface $context, StateInterface $state) { $context->setContextState($state->getName()); }