classes/phing/types/TokenSource.php
private function configureTokenReader(TokenReader $reader)
    {
        $count = count($this->parameters);
        for ($i = 0; $i < $count; $i++) {
            $method_name = "Set" . $this->parameters[$i]->getName();
            $value = $this->parameters[$i]->getValue();
            $reader->$method_name($value);
        }
    }
private function configureTokenReader(TokenReader $reader)
    {
        $count = count($this->parameters);
        for ($i = 0; $i < $count; $i++) {
            $method_name = "Set" . $this->parameters[$i]->getName();
            $value = $this->parameters[$i]->getValue();
            $reader->$method_name($value);
        }
    }
private function configureTokenReader ( TokenReader $ reader ) { $ count = count ( $ this -> parameters ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ method_name = "Set" . $ this -> parameters [ $ i ] -> getName ( ) ; $ value = $ this -> parameters [ $ i ] -> getValue ( ) ; $ reader -> $ method_name ( $ value ) ; } }
Configures a TokenReader with the parameters passed to the
TokenSource.

@param TokenReader $reader
Configures a TokenReader with the parameters passed to the TokenSource .