public function setNodeType($nodeType)
    {
        if (is_string($nodeType)) {
            $nodeType = $this->nodeTypeManager->getNodeType($nodeType);
        }

        if (!$nodeType instanceof NodeType) {
            throw new \InvalidArgumentException('nodeType needs to be of type string or NodeType', 1452100970);
        }

        $this->nodeType = $nodeType;
    }
public function setNodeType($nodeType)
    {
        if (is_string($nodeType)) {
            $nodeType = $this->nodeTypeManager->getNodeType($nodeType);
        }

        if (!$nodeType instanceof NodeType) {
            throw new \InvalidArgumentException('nodeType needs to be of type string or NodeType', 1452100970);
        }

        $this->nodeType = $nodeType;
    }
public function setNodeType ( $ nodeType ) { if ( is_string ( $ nodeType ) ) { $ nodeType = $ this -> nodeTypeManager -> getNodeType ( $ nodeType ) ; } if ( ! $ nodeType instanceof NodeType ) { throw new \ InvalidArgumentException ( 'nodeType needs to be of type string or NodeType' , 1452100970 ) ; } $ this -> nodeType = $ nodeType ; }
Set the node type

@param string $nodeType
Set the node type