1 | <?php |
||
19 | abstract class Collection extends ObjectRegistry implements IteratorAggregate |
||
20 | { |
||
21 | use InstanceConfigTrait; |
||
22 | |||
23 | /** |
||
24 | * Config array. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $_defaultConfig = []; |
||
29 | |||
30 | /** |
||
31 | * Constructor |
||
32 | * |
||
33 | * @param array $config Configuration |
||
34 | */ |
||
35 | public function __construct(array $config = []) |
||
47 | |||
48 | /** |
||
49 | * Returns true if a collection is empty. |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function isEmpty() |
||
57 | |||
58 | /** |
||
59 | * Returns iterator. |
||
60 | * |
||
61 | * @return \ArrayIterator |
||
62 | */ |
||
63 | public function getIterator() |
||
67 | } |
||
68 |