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