| @@ 41-51 (lines=11) @@ | ||
| 38 | return in_array($element, $this->data, $strict); |
|
| 39 | } |
|
| 40 | ||
| 41 | public function offsetSet($offset, $value) |
|
| 42 | { |
|
| 43 | if ($this->checkType($this->getType(), $value) === false) { |
|
| 44 | throw new \InvalidArgumentException( |
|
| 45 | 'Value must be of type ' . $this->getType() . '; value is ' |
|
| 46 | . $this->toolValueToString($value) |
|
| 47 | ); |
|
| 48 | } |
|
| 49 | ||
| 50 | $this->data[] = $value; |
|
| 51 | } |
|
| 52 | ||
| 53 | public function remove($element) |
|
| 54 | { |
|
| @@ 45-55 (lines=11) @@ | ||
| 42 | parent::__construct($data); |
|
| 43 | } |
|
| 44 | ||
| 45 | public function offsetSet($offset, $value) |
|
| 46 | { |
|
| 47 | if ($this->checkType($this->getType(), $value) === false) { |
|
| 48 | throw new \InvalidArgumentException( |
|
| 49 | 'Value must be of type ' . $this->getType() . '; value is ' |
|
| 50 | . $this->toolValueToString($value) |
|
| 51 | ); |
|
| 52 | } |
|
| 53 | ||
| 54 | $this->data[] = $value; |
|
| 55 | } |
|
| 56 | ||
| 57 | ||
| 58 | /** |
|