1 | <?php |
||
7 | class LinearArrayAdapter extends AbstractAdapter implements Adapter |
||
8 | { |
||
9 | /** |
||
10 | * Container for the array branches |
||
11 | * @var array |
||
12 | */ |
||
13 | private $lines = array(); |
||
14 | |||
15 | /** |
||
16 | * Adapt a tree to Array |
||
17 | * @return array |
||
18 | */ |
||
19 | public function adapt() |
||
25 | |||
26 | /** |
||
27 | * Loop throw the array and recursive call itself on children adding items to lines |
||
28 | * @param array $items |
||
29 | */ |
||
30 | private function getArrayItems($items) |
||
39 | } |
||
40 |