Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
19 | public function __construct(LoopInterface $loop, string $token, array $options = [], Transport $transport = null) |
||
20 | { |
||
21 | if (!($transport instanceof Transport)) { |
||
22 | $settings = [ |
||
23 | 'resource_namespace' => 'Async', |
||
24 | ] + ApiSettings::transportOptionsWithToken($token) + $options; |
||
25 | $transport = Factory::create($loop, $settings); |
||
26 | } |
||
27 | $this->transport = $transport; |
||
28 | } |
||
29 | |||
48 |