Пример #1
0
 /**
  * Create a new Move class instance.
  *
  * @param   \Baum\Node      $node
  * @param   \Baum\Node|int  $target
  * @param   string          $position
  * @return  void
  */
 public function __construct($node, $target, $position)
 {
     $this->node = $node;
     $this->target = $this->resolveNode($target);
     $this->position = $position;
     $this->setEventDispatcher($node->getEventDispatcher());
 }