1 | <?php namespace GenericCollections\Internal; |
||
3 | abstract class DataDoubleLinkedList implements StorageInterface |
||
4 | { |
||
5 | /** |
||
6 | * Local storage for members |
||
7 | * |
||
8 | * @var DoubleLinkedList |
||
9 | */ |
||
10 | protected $storage; |
||
11 | |||
12 | /** |
||
13 | * Create a new empty DoubleLinkedList and set it |
||
14 | * on protected variable $storage |
||
15 | * |
||
16 | * @return void |
||
17 | */ |
||
18 | abstract protected function createStorageObject(); |
||
19 | |||
20 | 3 | public function clear() |
|
24 | |||
25 | 78 | public function isEmpty() |
|
29 | |||
30 | 66 | public function toArray() |
|
38 | |||
39 | 87 | public function count() |
|
43 | |||
44 | 3 | public function getIterator() |
|
48 | } |
||
49 |