Bluz\Response\Response::getProtocolVersion PHP Method

getProtocolVersion() public method

The string MUST contain only the HTTP version number (e.g., "1.1", "1.0").
public getProtocolVersion ( ) : string
return string HTTP protocol version.
    public function getProtocolVersion()
    {
        return $this->protocol;
    }

Usage Example

Example #1
0
 /**
  * Test initial values of Response properties
  */
 public function testGetters()
 {
     $this->assertNotEmpty($this->response->getProtocolVersion());
     $this->assertNull($this->response->getReasonPhrase());
 }