| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class Items |
||
| 5 | { |
||
| 6 | protected $arrayObject; |
||
| 7 | |||
| 8 | public function __construct(\ArrayObject $arrayObject) |
||
| 11 | } |
||
| 12 | |||
| 13 | public function getArrayObject() |
||
| 14 | { |
||
| 15 | return $this->arrayObject; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function set($index, $item) |
||
| 19 | { |
||
| 20 | $this->arrayObject->offsetSet($index, $item); |
||
| 21 | return true; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function remove($index) |
||
|
|
|||
| 25 | { |
||
| 26 | $this->arrayObject->offsetUnset(); |
||
| 27 | $this->rebuildIndex(); |
||
| 28 | return true; |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function rebuildIndex() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.