Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function __invoke(array $options) |
||
13 | { |
||
14 | $token = (string) ($options['token'] ?? ''); |
||
15 | $region = (string) ($options['region'] ?? ''); |
||
16 | $useSSL = (bool) ($options['useSSL'] ?? true); |
||
17 | $level = (int) ($options['level'] ?? Logger::DEBUG); |
||
18 | $bubble = (boolean) ($options['bubble'] ?? true); |
||
19 | |||
20 | return new InsightOpsHandler( |
||
21 | $token, |
||
22 | $region, |
||
23 | $useSSL, |
||
24 | $level, |
||
25 | $bubble |
||
26 | ); |
||
27 | } |
||
28 | } |
||
29 |