Doctrine\OrientDB\Binding\Client\Http\CurlClientResponse::getStatusCode PHP Method

getStatusCode() public method

Returns the status code of the response.
public getStatusCode ( ) : String
return String
    public function getStatusCode()
    {
        return $this->statusCode;
    }

Usage Example

コード例 #1
0
 public function testGettingTheStatusCode()
 {
     $response = new CurlClientResponse("HTTP/1.1 200 OK\r\nCache-Control: max-age=30\r\nCache-Control: s-maxage=50\r\n\r\n");
     $this->assertEquals("200", $response->getStatusCode());
 }