Total Complexity | 7 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | abstract class EntityList |
||
14 | { |
||
15 | |||
16 | private $list; |
||
17 | |||
18 | 3 | public function __construct() |
|
19 | { |
||
20 | 3 | $this->createList(); |
|
21 | 3 | } |
|
22 | |||
23 | 3 | private function createList() |
|
24 | { |
||
25 | 3 | $this->list = new \ArrayIterator(array()); |
|
26 | 3 | } |
|
27 | |||
28 | /** |
||
29 | * @return \ArrayIterator |
||
30 | */ |
||
31 | 3 | private function getList() |
|
34 | } |
||
35 | |||
36 | 3 | public function append($entity) |
|
39 | 3 | } |
|
40 | |||
41 | 1 | public function getKeyName() |
|
44 | } |
||
45 | |||
46 | 3 | public function toArray() |
|
47 | { |
||
48 | 3 | return $this->getList()->getArrayCopy(); |
|
49 | } |
||
50 | |||
51 | 1 | public function count() |
|
54 | } |
||
55 | } |
||
56 |