Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function __invoke(array $options) |
|
17 | { |
||
18 | 1 | $client = $this->getClient($options); |
|
19 | 1 | $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | 1 | $bubble = (boolean) ($options['bubble'] ?? true); |
|
21 | |||
22 | 1 | return new DoctrineCouchDBHandler( |
|
23 | 1 | $client, |
|
24 | 1 | $level, |
|
25 | 1 | $bubble |
|
26 | ); |
||
27 | } |
||
28 | } |
||
29 |