protected function getTokenValue($name)
    {
        $method = "get{$name}";
        
        if ($this->hasMethod($method)) {
            return $this->{$method}();
        }
        
        return $this->$name;
    }
protected function getTokenValue($name)
    {
        $method = "get{$name}";
        
        if ($this->hasMethod($method)) {
            return $this->{$method}();
        }
        
        return $this->$name;
    }
protected function getTokenValue ( $ name ) { $ method = "get{$name}" ; if ( $ this -> hasMethod ( $ method ) ) { return $ this -> { $ method } ( ) ; } return $ this -> $ name ; }
Answers the value of the given token name.

@param string $name

@return mixed
Answers the value of the given token name .