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