Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | 5 | public function __construct(MockHandler $mock = NULL) |
|
13 | { |
||
14 | 5 | if ($mock) { |
|
15 | 4 | $handlerStack = HandlerStack::create($mock); |
|
16 | 4 | parent::__construct(['handler' => $handlerStack]); |
|
17 | } else { |
||
18 | 1 | parent::__construct([ |
|
19 | 1 | 'base_uri' => self::API_BASE, |
|
20 | 'headers' => [ |
||
21 | 'Content-Type' => 'application/json' |
||
22 | ] |
||
28 |