コード例 #1
0
ファイル: Server.php プロジェクト: thefox/smtpd
 public function clientRemove(Client $client)
 {
     $this->log->debug('client remove: ' . $client->getId());
     $client->shutdown();
     $clientsId = $client->getId();
     unset($this->clients[$clientsId]);
 }
コード例 #2
0
ファイル: ClientTest.php プロジェクト: thefox/smtpd
 public function testSetId()
 {
     $client = new Client();
     $client->setId(1);
     $this->assertEquals(1, $client->getId());
 }