/** * Creates a new XincludeFilter using the passed in * Reader for instantiation. * * @param Reader A Reader object providing the underlying stream. * Must not be <code>null</code>. * * @return Reader A new filter based on this configuration, but filtering * the specified reader */ function chain(Reader $reader) { $newFilter = new XincludeFilter($reader); $newFilter->setProject($this->getProject()); $newFilter->setBasedir($this->getBasedir()); return $newFilter; }
function addXincludeFilter(XincludeFilter $o) { $o->setProject($this->project); $this->filterReaders[] = $o; }