/** * 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); } }
/** * 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); } }