Ejemplo n.º 1
0
 public function __construct($socket, Server $server)
 {
     $this->socket = $socket;
     $this->server_confs = ['host' => $server->getHost(), 'port' => $server->getPort()];
 }
Ejemplo n.º 2
0
 public function __construct($host, $port, $debug)
 {
     parent::__construct($host, $port, $debug);
     $this->registerEvents();
     return $this;
 }