| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function setParameter($parameter, $value) |
||
| 20 | { |
||
| 21 | $parameter = trim($parameter); |
||
| 22 | |||
| 23 | if ($parameter === 'apc') { |
||
| 24 | throw new \InvalidArgumentException('"apc" can not be used as a custom parameter as it is reserved'); |
||
| 25 | } |
||
| 26 | |||
| 27 | $this->parameters[$parameter] = $value; |
||
| 28 | |||
| 29 | return $value; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |