Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 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 |