HamlPHP::setNodeFactory PHP Method

setNodeFactory() public method

Sets a node factory.
public setNodeFactory ( NodeFactory $factory )
$factory NodeFactory
    public function setNodeFactory(NodeFactory $factory)
    {
        if ($factory === null) {
            throw new Exception("Parameter \$factory can not be null");
        }
        $this->_nodeFactory = $factory;
        $this->_nodeFactory->setFilterContainer($this->getFilterContainer());
    }