Beispiel #1
0
 /**
  * This method removes a target state from the transition.
  *
  * @access public
  * @param mixed $target                                     the target state to be removed
  */
 public function removeTarget($target)
 {
     if ($target !== null) {
         $tid = $target instanceof Automaton\IState ? $target->getId() : '' . $target;
         $this->targets->removeValue($tid);
     }
 }
Beispiel #2
0
 /**
  * This method removes the specified transition from the state.
  *
  * @access public
  * @param string $transition                                the transition to be removed
  */
 public function removeTransition($transition)
 {
     if ($transition !== null) {
         $tid = $transition instanceof Automaton\ITransition ? $transition->getId() : '' . $transition;
         $this->transitions->removeValue($tid);
     }
 }