| 1 | <?php |
||
| 13 | class Config |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var MessageFormatInterface[] |
||
| 17 | */ |
||
| 18 | private $messageFormats = []; |
||
| 19 | |||
| 20 | private $xsdValidation = true; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param MessageFormatInterface $messageFormat |
||
| 24 | */ |
||
| 25 | 6 | public function addMessageFormat(MessageFormatInterface $messageFormat) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return MessageFormatInterface[] |
||
| 32 | */ |
||
| 33 | 3 | public function getMessageFormats() |
|
| 37 | |||
| 38 | 2 | public function disableXsdValidation() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | 4 | public function getXsdValidation() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return static |
||
| 53 | */ |
||
| 54 | 4 | public static function getDefault() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @return Config |
||
| 70 | */ |
||
| 71 | 2 | public static function noValidate() |
|
| 78 | } |
||
| 79 |