Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
16 | public function __invoke(array $options) |
||
17 | { |
||
18 | $sqsClient = $this->getService($options['sqsClient'] ?? null); |
||
19 | |||
20 | $queueUrl = (string) ($options['queueUrl'] ?? Logger::DEBUG); |
||
21 | $level = (int) ($options['level'] ?? Logger::DEBUG); |
||
22 | $bubble = (boolean) ($options['bubble'] ?? true); |
||
23 | |||
24 | return new SqsHandler($sqsClient, $queueUrl, $level, $bubble); |
||
25 | } |
||
26 | } |
||
27 |