| 1 | <?php |
||
| 7 | class ArrayAdapter extends AbstractAdapter implements Adapter |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Adapt a tree to Array |
||
| 11 | * @return array |
||
| 12 | */ |
||
| 13 | public function adapt() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Loop throw the array and recursive call itself on children |
||
| 21 | * @param array $items |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | private function getArrayItems($items) |
||
| 39 | } |
||
| 40 |