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