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