public function addCustomNodeClass(string $name, string $class): self{
        if(!is_subclass_of($class, NodeInterface::class)){
            throw new \InvalidArgumentException();
        }

        $this->customNodes[$name]   = $class;

        return $this;
    }
public function addCustomNodeClass(string $name, string $class): self{
        if(!is_subclass_of($class, NodeInterface::class)){
            throw new \InvalidArgumentException();
        }

        $this->customNodes[$name]   = $class;

        return $this;
    }
public function addCustomNodeClass ( string $ name , string $ class ) : self { if ( ! is_subclass_of ( $ class , NodeInterface :: class ) ) { throw new \ InvalidArgumentException ( ) ; } $ this -> customNodes [ $ name ] = $ class ; return $ this ; }
Add custom node class name.

@param string $name
@param string $class

@return NodeManager
Add custom node class name .