| Total Complexity | 6 | 
| Total Lines | 52 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 4 | class RefactorArray implements ArrayAccess, Countable  | 
            ||
| 5 | {
 | 
            ||
| 6 | /**  | 
            ||
| 7 | * [private description]  | 
            ||
| 8 | * @var [type]  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 9 | */  | 
            ||
| 10 | private $data = array();  | 
            ||
| 11 | /**  | 
            ||
| 12 | * [offsetSet description]  | 
            ||
| 13 | * @date 2019-11-02  | 
            ||
| 14 | * @param [type] $offset [description]  | 
            ||
| 15 | * @param [type] $value [description]  | 
            ||
| 16 | */  | 
            ||
| 17 | public function offsetSet($offset, $value)  | 
            ||
| 18 |   {
 | 
            ||
| 19 | $this->data[$offset] = $value;  | 
            ||
| 20 | }  | 
            ||
| 21 | /**  | 
            ||
| 22 | * [offsetExists description]  | 
            ||
| 23 | * @date 2019-11-02  | 
            ||
| 24 | * @param [type] $offset [description]  | 
            ||
| 25 | */  | 
            ||
| 26 | public function offsetExists($offset)  | 
            ||
| 27 |   {
 | 
            ||
| 28 | return isset($this->data[$offset]);  | 
            ||
| 29 | }  | 
            ||
| 30 | /**  | 
            ||
| 31 | * [offsetUnset description]  | 
            ||
| 32 | * @date 2019-11-02  | 
            ||
| 33 | * @param [type] $offset [description]  | 
            ||
| 34 | */  | 
            ||
| 35 | public function offsetUnset($offset)  | 
            ||
| 38 | }  | 
            ||
| 39 | /**  | 
            ||
| 40 | * [offsetGet description]  | 
            ||
| 41 | * @date 2019-11-02  | 
            ||
| 42 | * @param [type] $offset [description]  | 
            ||
| 43 | */  | 
            ||
| 44 | public function offsetGet($offset)  | 
            ||
| 45 |   {
 | 
            ||
| 46 | return ($this->offsetExists($offset)) ? $this->data[$offset] : null;  | 
            ||
| 47 | }  | 
            ||
| 48 | /**  | 
            ||
| 49 | * [count description]  | 
            ||
| 50 | * @date 2019-11-02  | 
            ||
| 51 | * @return [type] [description]  | 
            ||
| 52 | */  | 
            ||
| 53 | public function count()  | 
            ||
| 56 | }  | 
            ||
| 57 | }  | 
            ||
| 58 |