/** * Creates a new LineContainsRegExp using the passed in * Reader for instantiation. * * @param object A 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 */ function chain(Reader $reader) { $newFilter = new LineContainsRegExp($reader); $newFilter->setRegexps($this->getRegexps()); $newFilter->setInitialized(true); $newFilter->setProject($this->getProject()); return $newFilter; }