Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
1 | <?php |
||
21 | 1 | public static function create( |
|
22 | LoopInterface $loop, |
||
23 | string $ip, |
||
24 | int $port, |
||
25 | Configuration $configuration = null |
||
26 | ): Node { |
||
27 | 1 | $socket = new Server($loop); |
|
28 | 1 | $socket->listen($port, $ip); |
|
29 | |||
30 | 1 | return new Node( |
|
31 | $loop, |
||
32 | $socket, |
||
33 | 1 | self::createCommands(), |
|
34 | $configuration |
||
35 | ); |
||
36 | } |
||
37 | |||
51 |