protected function retrieve($name)
    {
        switch ($name) {
            case 'port':
                if (is_null($this->$name) && isset(self::$defaultPorts[$this->scheme])) {
                    return self::$defaultPorts[$this->scheme];
                }
                //Just handle port then go to the default case
            default:
                return $this->$name;
        }
    }
protected function retrieve($name)
    {
        switch ($name) {
            case 'port':
                if (is_null($this->$name) && isset(self::$defaultPorts[$this->scheme])) {
                    return self::$defaultPorts[$this->scheme];
                }
                //Just handle port then go to the default case
            default:
                return $this->$name;
        }
    }
protected function retrieve ( $ name ) { switch ( $ name ) { case 'port' : if ( is_null ( $ this -> $ name ) && isset ( self :: $ defaultPorts [ $ this -> scheme ] ) ) { return self :: $ defaultPorts [ $ this -> scheme ] ; } //Just handle port then go to the default case default : return $ this -> $ name ; } }
Property name to retrieve from the current object
This function is defined only for the special port case
@param string $name
@return mixed
Property name to retrieve from the current object This function is defined only for the special port case