Jackalope\NodeType\NodeTypeManager::createNodeType PHP Метод

createNodeType() защищенный Метод

Internally create a node type object
protected createNodeType ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd, boolean $allowUpdate ) : NodeType
$ntd PHPCR\NodeType\NodeTypeDefinitionInterface
$allowUpdate boolean whether updating the definition is to be allowed or not
Результат NodeType the new node type
    protected function createNodeType(NodeTypeDefinitionInterface $ntd, $allowUpdate)
    {
        if ($this->hasNodeType($ntd->getName()) && !$allowUpdate) {
            throw new NodeTypeExistsException('NodeType already existing: ' . $ntd->getName());
        }
        return $this->factory->get('NodeType\\NodeType', array($this, $ntd));
    }