getCode() public method

Returns the reply code sent by the server.
public getCode ( ) : string
return string
示例#1
0
 /**
  * Tests that the event response code can be changed.
  *
  * @return void
  */
 public function testSetCode()
 {
     $code = Phergie_Event_Response::ERR_NOSUCHNICK;
     $this->event->setCode($code);
     $this->assertSame($code, $this->event->getCode());
 }