getCode() public méthode

public getCode ( ) : integer
Résultat integer
Exemple #1
0
 public function testBasicUsage()
 {
     $status = new Http\Status(200);
     $this->assertEquals($status->getCode(), 200);
     $this->assertEquals($status->getMessage(), 'OK');
     $this->assertEquals($status->getStatusLine(), "HTTP/1.1 200 OK\r\n");
 }