Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class ReactFactory |
||
16 | { |
||
17 | /** |
||
18 | * Build a react Event Loop. |
||
19 | * |
||
20 | * @return LoopInterface |
||
21 | */ |
||
22 | 110 | public static function buildEventLoop() |
|
23 | { |
||
24 | 110 | return EventLoopFactory::create(); |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Build a React Http Client. |
||
29 | * |
||
30 | * @param LoopInterface $loop |
||
31 | * @param ConnectorInterface|null $connector Only pass this argument if you need to customize DNS |
||
32 | * behaviour. |
||
33 | * |
||
34 | * @return Browser |
||
35 | */ |
||
36 | 106 | public static function buildHttpClient( |
|
43 | } |
||
44 | } |
||
45 |