| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct($address = null, $port = self::DEFAULT_PORT) |
||
| 14 | { |
||
| 15 | parent::__construct($address, $port); |
||
| 16 | $this->addHook(Server::HOOK_CONNECT, [$this, 'onConnect']); |
||
| 17 | $this->addHook(Server::HOOK_INPUT, [$this, 'onInput']); |
||
| 18 | $this->addHook(Server::HOOK_DISCONNECT, [$this, 'onDisconnect']); |
||
| 19 | $this->run(); |
||
| 20 | } |
||
| 21 | |||
| 40 |