Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
18 | public function __construct(Transport $transport = null) |
||
19 | { |
||
20 | $loop = LoopFactory::create(); |
||
21 | if (!($transport instanceof Transport)) { |
||
22 | $transport = Factory::create($loop, [ |
||
23 | 'resource_namespace' => 'Sync', |
||
24 | ]); |
||
25 | } |
||
26 | $this->transport = $transport; |
||
27 | $this->client = new AsyncClient($loop, $this->transport); |
||
28 | } |
||
29 | |||
38 |