Neos.ContentRepository/Classes/Domain/NodeType/NodeTypeConstraints.php
public function withExplicitlyDisallowedNodeType(NodeTypeName $nodeTypeName): NodeTypeConstraints
    {
        $disallowedNodeTypeNames = $this->explicitlyDisallowedNodeTypeNames;
        $disallowedNodeTypeNames[] = $nodeTypeName;
        return new NodeTypeConstraints($this->wildcardAllowed, $this->explicitlyAllowedNodeTypeNames, $disallowedNodeTypeNames);
    }
public function withExplicitlyDisallowedNodeType(NodeTypeName $nodeTypeName): NodeTypeConstraints
    {
        $disallowedNodeTypeNames = $this->explicitlyDisallowedNodeTypeNames;
        $disallowedNodeTypeNames[] = $nodeTypeName;
        return new NodeTypeConstraints($this->wildcardAllowed, $this->explicitlyAllowedNodeTypeNames, $disallowedNodeTypeNames);
    }
public function withExplicitlyDisallowedNodeType ( NodeTypeName $ nodeTypeName ) : NodeTypeConstraints { $ disallowedNodeTypeNames = $ this -> explicitlyDisallowedNodeTypeNames ; $ disallowedNodeTypeNames [ ] = $ nodeTypeName ; return new NodeTypeConstraints ( $ this -> wildcardAllowed , $ this -> explicitlyAllowedNodeTypeNames , $ disallowedNodeTypeNames ) ; }
IMMUTABLE, returns a new instance

@param NodeTypeName $nodeTypeName
@return NodeTypeConstraints
IMMUTABLE returns a new instance