1 | <?php |
||
18 | class RecordsStore |
||
19 | { |
||
20 | /** |
||
21 | * @var Record[] |
||
22 | */ |
||
23 | protected $records = []; |
||
24 | |||
25 | /** |
||
26 | * @param Record $record |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function isContain(Record $record) : bool |
||
33 | |||
34 | /** |
||
35 | * @param Record $record |
||
36 | * @return RecordsStore |
||
37 | */ |
||
38 | public function remove(Record $record) : RecordsStore |
||
44 | |||
45 | /** |
||
46 | * @param Record $record |
||
47 | * @return RecordsStore |
||
48 | */ |
||
49 | public function change(Record $record) : RecordsStore |
||
61 | |||
62 | /** |
||
63 | * @param Record $record |
||
64 | * @return RecordsStore |
||
65 | */ |
||
66 | 1 | public function append(Record $record) : RecordsStore |
|
72 | |||
73 | /** |
||
74 | * @return int |
||
75 | */ |
||
76 | public function count() : int |
||
80 | |||
81 | /** |
||
82 | * @param eRecordType $type |
||
83 | * @return record\base\Record[] |
||
84 | */ |
||
85 | 1 | public function iterate(eRecordType $type = NULL) |
|
95 | |||
96 | public function sort() |
||
108 | } |