Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
57 | protected function finalizeValue($value) |
||
58 | { |
||
59 | if (!in_array($value, $this->values)) { |
||
60 | throw new InvalidConfigurationException(sprintf( |
||
61 | 'Value "%s" is not accepted for path "%s". Acceptable values: "%s"', |
||
62 | $value, |
||
63 | $this->getPath(), |
||
64 | implode(', ', $this->values) |
||
65 | )); |
||
66 | } |
||
67 | |||
68 | return $value; |
||
69 | } |
||
70 | } |
||
71 |