src/Gzfextra/EasyMvc/Http/Request.php
public function getServer($name = null, $default = null)
    {
        if ($this->serverParams === null) {
            $this->serverParams = new Parameters();
        }

        if ($name === null) {
            return $this->serverParams;
        }

        return $this->serverParams->get($name, $default);
    }
public function getServer($name = null, $default = null)
    {
        if ($this->serverParams === null) {
            $this->serverParams = new Parameters();
        }

        if ($name === null) {
            return $this->serverParams;
        }

        return $this->serverParams->get($name, $default);
    }
public function getServer ( $ name = null , $ default = null ) { if ( $ this -> serverParams === null ) { $ this -> serverParams = new Parameters ( ) ; } if ( $ name === null ) { return $ this -> serverParams ; } return $ this -> serverParams -> get ( $ name , $ default ) ; }
Return the parameter container responsible for server parameters or a single parameter value.

@param string|null $name   Parameter name to retrieve, or null to get the whole container.
@param mixed|null $default Default value to use when the parameter is missing.
@see http://www.faqs.org/rfcs/rfc3875.html
@return \Zend\Stdlib\ParametersInterface|mixed
Return the parameter container responsible for server parameters or a single parameter value .