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