1 | <?php |
||
19 | abstract class AbstractModelCollection extends AbstractObjectCollection implements ModelCollectionInterface |
||
20 | { |
||
21 | |||
22 | use ErrorTrait { |
||
23 | getErrors as _traitGetErrors; |
||
24 | clearErrors as _traitClearErrors; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * The item instance class |
||
29 | */ |
||
30 | const ITEM_CLASS_INSTANCE = ModelInterface::class; |
||
31 | |||
32 | |||
33 | /******************************************* |
||
34 | * AGGREGATE ERRORS |
||
35 | *******************************************/ |
||
36 | |||
37 | /** |
||
38 | * Merge errors from all |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | public function getErrors($attribute = null) |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | public function clearErrors($attribute = null) |
||
68 | |||
69 | /** |
||
70 | * Get a unique Id for an object |
||
71 | * |
||
72 | * @param $item |
||
73 | * @return string |
||
74 | */ |
||
75 | protected function getItemId($item) |
||
79 | } |
||
80 |