| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function get($key) |
||
| 32 | { |
||
| 33 | if (!array_key_exists($key, $this->options)) { |
||
| 34 | throw new InvalidArgumentException( |
||
| 35 | sprintf('Key %s is not valid, available options are: %s', |
||
| 36 | $key, |
||
| 37 | implode(',', array_keys($this->options) |
||
| 38 | ) |
||
| 39 | ) |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $this->options[$key]; |
||
| 44 | } |
||
| 54 |