public function defaultPort($port = null)
    {
        if (!is_null($port)) {
            $this->defaultPort = (int)$port;
            if ($this->url['port'] === null) {
                $this->url['port'] = $this->defaultPort;
            }
        }

        return $this->defaultPort;
    }
public function defaultPort($port = null)
    {
        if (!is_null($port)) {
            $this->defaultPort = (int)$port;
            if ($this->url['port'] === null) {
                $this->url['port'] = $this->defaultPort;
            }
        }

        return $this->defaultPort;
    }
public function defaultPort ( $ port = null ) { if ( ! is_null ( $ port ) ) { $ this -> defaultPort = ( int ) $ port ; if ( $ this -> url [ 'port' ] === null ) { $ this -> url [ 'port' ] = $ this -> defaultPort ; } } return $ this -> defaultPort ; }
Get or set the default port

@param int $port
@return int
Get or set the default port