| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function check() |
||
| 27 | { |
||
| 28 | $this->checkType('string'); |
||
| 29 | |||
| 30 | if (!is_null($this->allowedValues) && (!in_array($this->getValue(), $this->allowedValues))) { |
||
| 31 | throw new InvalidOptionValueException( |
||
| 32 | '"' . $this->id . '" option must be on of these values: ' . |
||
| 33 | '[' . implode(', ', $this->allowedValues) . ']. ' . |
||
| 34 | 'It was however set to: "' . $this->getValue() . '"' |
||
| 35 | ); |
||
| 39 |