Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Config |
||
12 | { |
||
13 | /** |
||
14 | * @var MessageFormatInterface[] |
||
15 | */ |
||
16 | private array $messageFormats = []; |
||
17 | |||
18 | private bool $xsdValidation = true; |
||
19 | |||
20 | public function addMessageFormat(MessageFormatInterface $messageFormat): void |
||
23 | 6 | } |
|
24 | |||
25 | 6 | /** |
|
26 | 6 | * @return MessageFormatInterface[] |
|
27 | */ |
||
28 | public function getMessageFormats(): array |
||
29 | { |
||
30 | return $this->messageFormats; |
||
31 | 3 | } |
|
32 | |||
33 | 3 | public function disableXsdValidation(): void |
|
34 | { |
||
35 | $this->xsdValidation = false; |
||
36 | 2 | } |
|
37 | |||
38 | 2 | public function getXsdValidation(): bool |
|
41 | 4 | } |
|
42 | |||
43 | 4 | public static function getDefault(): self |
|
62 |