| Conditions | 4 |
| Paths | 6 |
| Total Lines | 19 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 77 | public function addValue($value) |
||
| 78 | { |
||
| 79 | // Check if this Parameter has a previously set value |
||
| 80 | if($this->value === null) |
||
| 81 | { |
||
| 82 | // Initialize this Parameters value to a new array |
||
| 83 | $this->value = array(); |
||
| 84 | } |
||
| 85 | |||
| 86 | // Check if the new value is an array |
||
| 87 | if(!is_array($value)) |
||
| 88 | { |
||
| 89 | // Append new single value to this Parameters value array |
||
| 90 | $this->value[] = $value; |
||
| 91 | } |
||
| 92 | else |
||
| 93 | { |
||
| 94 | // Append every new value to this Parameters value array |
||
| 95 | foreach($value as $v) $this->value[] = $v; |
||
| 96 | } |
||
| 100 |