コード例 #1
0
ファイル: Move.php プロジェクト: sonars/tree
 /**
  * Create a new Move class instance.
  *
  * @param   \Tree\Node      $node
  * @param   \Tree\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());
 }