Exemple #1
0
 /**
  * @see \FSM\Transition\TransitionInterface::accept()
  */
 public function accept()
 {
     if ($this->isAcceptible()) {
         $this->sourceState->getContext()->setState($this->targetState);
         return $this;
     }
     throw new \BadMethodCallException("Current transition can not be accepted");
 }