| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class InvalidConfigStateException extends ConfigException { |
||
| 6 | |||
| 7 | /** @var StrictConfig */ |
||
| 8 | private $config; |
||
| 9 | |||
| 10 | 4 | public function __construct(StrictConfig $config) { |
|
| 11 | 4 | $this->config = $config; |
|
| 12 | 4 | parent::__construct($this->getMessagesAsYmlString()); |
|
| 13 | 4 | } |
|
| 14 | |||
| 15 | 4 | public function getMessagesAsYmlString() { |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function getValidationMessages() { |
|
| 28 | 1 | return $this->config->validationMessages(); |
|
| 29 | } |
||
| 30 | |||
| 31 | public function getConfig() { return $this->config; } |
||
| 32 | } |