| 1 | <?php |
||
| 5 | abstract class BaseCollection extends \ArrayObject implements DataWrapperInterface |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @param array $collection |
||
| 10 | * |
||
| 11 | * If not items of this collection already, it creates it! |
||
| 12 | */ |
||
| 13 | 2 | public function __construct(array $collection = array()) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | 1 | public function toArray() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string Must return the class of this collection items |
||
| 41 | */ |
||
| 42 | abstract protected function getType(); |
||
| 43 | } |
||
| 44 |