Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class ThrowErrorsAsExceptionsOptions implements OptionsInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | private $levels; |
||
26 | |||
27 | /** |
||
28 | * @var LoggerInterface|null |
||
29 | */ |
||
30 | private $logger; |
||
31 | |||
32 | /** |
||
33 | * @param int $levels |
||
34 | * @param LoggerInterface|null $logger |
||
35 | */ |
||
36 | 10 | public function __construct(int $levels, ?LoggerInterface $logger) |
|
40 | 10 | } |
|
41 | |||
42 | /** |
||
43 | * @return int |
||
44 | */ |
||
45 | 3 | public function getLevels(): int |
|
46 | { |
||
47 | 3 | return $this->levels; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return LoggerInterface|null |
||
52 | */ |
||
53 | 4 | public function getLogger(): ?LoggerInterface |
|
54 | { |
||
55 | 4 | return $this->logger; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param string $appRoot |
||
60 | * @param DefaultsConfiguration $defaultsConfiguration |
||
61 | * |
||
62 | * @return ThrowErrorsAsExceptionsOptions |
||
63 | */ |
||
64 | 3 | public static function getDefault(string $appRoot, DefaultsConfiguration $defaultsConfiguration): OptionsInterface |
|
67 | } |
||
68 | } |
||
69 |