Baum\Move::__construct PHP 메소드

__construct() 공개 메소드

Create a new Move class instance.
public __construct ( Node $node, Node | integer $target, string $position ) : void
$node Node
$target Node | integer
$position string
리턴 void
    public function __construct($node, $target, $position)
    {
        $this->node = $node;
        $this->target = $this->resolveNode($target);
        $this->position = $position;
        $this->setEventDispatcher($node->getEventDispatcher());
    }