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()); }