| Total Complexity | 9 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | trait Arrayizes |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Get data as array. |
||
| 18 | * |
||
| 19 | * @param mixed $data Arbitrary data. |
||
| 20 | * @param bool $cast Force casting to array! |
||
| 21 | * |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function asArray($data, $cast = true) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Convert the data items to array. |
||
| 53 | * |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | public function toArray() |
||
| 67 |