| Conditions | 5 |
| Paths | 16 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function __construct($applicationPrefix = '', array $connectionOptions = []) |
||
| 26 | { |
||
| 27 | $host = isset($connectionOptions['host']) ? $connectionOptions['host'] : '127.0.0.1'; |
||
| 28 | $port = isset($connectionOptions['port']) ? $connectionOptions['port'] : '8125'; |
||
| 29 | $timeout = isset($connectionOptions['timeout']) ? $connectionOptions['timeout'] : null; |
||
| 30 | $persistent = isset($connectionOptions['persistent']) ? $connectionOptions['persistent'] : false; |
||
| 31 | |||
| 32 | $this->connection = new UdpSocket($host, $port, $timeout, $persistent); |
||
| 33 | $this->applicationPrefix = $applicationPrefix; |
||
| 34 | } |
||
| 35 | |||
| 47 |