| Conditions | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 1569 | public function build(string $context): Configuration |
|
| 35 | { |
||
| 36 | try { |
||
| 37 | 1569 | $class = join('\\', [__NAMESPACE__, ucfirst($context) . 'Configuration']); |
|
| 38 | 1569 | return new $class($this->toArray()); |
|
| 39 | // @codeCoverageIgnoreStart |
||
| 40 | } catch (CacheException $e) { |
||
| 41 | throw $e; |
||
| 42 | // @codeCoverageIgnoreEnd |
||
| 43 | 377 | } catch (Throwable $e) { |
|
| 44 | return new class($this->toArray()) extends Arguments implements Configuration {}; |
||
| 45 | } |
||
| 48 |