classes/phing/filters/ReplaceTokens.php
public function chain(Reader $reader)
    {
        $newFilter = new ReplaceTokens($reader);
        $newFilter->setProject($this->getProject());
        $newFilter->setBeginToken($this->getBeginToken());
        $newFilter->setEndToken($this->getEndToken());
        $newFilter->setTokens($this->getTokens());
        $newFilter->setTokensources($this->getTokensources());
        $newFilter->setInitialized(true);

        return $newFilter;
    }
public function chain(Reader $reader)
    {
        $newFilter = new ReplaceTokens($reader);
        $newFilter->setProject($this->getProject());
        $newFilter->setBeginToken($this->getBeginToken());
        $newFilter->setEndToken($this->getEndToken());
        $newFilter->setTokens($this->getTokens());
        $newFilter->setTokensources($this->getTokensources());
        $newFilter->setInitialized(true);

        return $newFilter;
    }
public function chain ( Reader $ reader ) { $ newFilter = new ReplaceTokens ( $ reader ) ; $ newFilter -> setProject ( $ this -> getProject ( ) ) ; $ newFilter -> setBeginToken ( $ this -> getBeginToken ( ) ) ; $ newFilter -> setEndToken ( $ this -> getEndToken ( ) ) ; $ newFilter -> setTokens ( $ this -> getTokens ( ) ) ; $ newFilter -> setTokensources ( $ this -> getTokensources ( ) ) ; $ newFilter -> setInitialized ( true ) ; return $ newFilter ; }
Creates a new ReplaceTokens using the passed in
Reader for instantiation.

@param    Reader $reader
@throws   Exception
@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
Creates a new ReplaceTokens using the passed in Reader for instantiation .