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