1 | <?php |
||
4 | abstract class DataDoubleLinkedList implements StorageInterface |
||
5 | { |
||
6 | /** |
||
7 | * Local storage for members |
||
8 | * |
||
9 | * @var DoubleLinkedList |
||
10 | */ |
||
11 | protected $storage; |
||
12 | |||
13 | /** |
||
14 | * Create a new empty DoubleLinkedList and set it |
||
15 | * on protected variable $storage |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | abstract protected function createStorageObject(); |
||
20 | |||
21 | 1 | public function clear() |
|
25 | |||
26 | 26 | public function isEmpty() |
|
30 | |||
31 | 22 | public function toArray() |
|
39 | |||
40 | 29 | public function count() |
|
44 | |||
45 | 1 | public function getIterator() |
|
49 | } |
||
50 |