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