concrete/src/Tree/Node/Node.php
public function transformNode($treeNodeType)
    {
        $class = self::getClassByType($treeNodeType);
        $node = new $class();
        $node->setPropertiesFromArray($this);

        return $node;
    }
public function transformNode($treeNodeType)
    {
        $class = self::getClassByType($treeNodeType);
        $node = new $class();
        $node->setPropertiesFromArray($this);

        return $node;
    }
public function transformNode ( $ treeNodeType ) { $ class = self :: getClassByType ( $ treeNodeType ) ; $ node = new $ class ( ) ; $ node -> setPropertiesFromArray ( $ this ) ; return $ node ; }
Transforms a node to another node.

@param mixed $treeNodeType
Transforms a node to another node .