classes/phing/filters/LineContains.php
public function chain(Reader $reader): LineContains
    {
        $newFilter = new self($reader);
        $newFilter->setContains($this->getContains());
        $newFilter->setNegate($this->isNegated());
        $newFilter->setMatchAny($this->isMatchAny());
        $newFilter->setInitialized(true);
        $newFilter->setProject($this->getProject());

        return $newFilter;
    }
public function chain(Reader $reader): LineContains
    {
        $newFilter = new self($reader);
        $newFilter->setContains($this->getContains());
        $newFilter->setNegate($this->isNegated());
        $newFilter->setMatchAny($this->isMatchAny());
        $newFilter->setInitialized(true);
        $newFilter->setProject($this->getProject());

        return $newFilter;
    }
public function chain ( Reader $ reader ) : LineContains { $ newFilter = new self ( $ reader ) ; $ newFilter -> setContains ( $ this -> getContains ( ) ) ; $ newFilter -> setNegate ( $ this -> isNegated ( ) ) ; $ newFilter -> setMatchAny ( $ this -> isMatchAny ( ) ) ; $ newFilter -> setInitialized ( true ) ; $ newFilter -> setProject ( $ this -> getProject ( ) ) ; return $ newFilter ; }
Creates a new LineContains using the passed in
Reader for instantiation.

@param Reader $reader A Reader object providing the underlying stream.
Must not be <code>null</code>.

@return LineContains A new filter based on this configuration, but filtering
the specified reader
@throws Exception
Creates a new LineContains using the passed in Reader for instantiation .