1 | <?php |
||
22 | trait ModuleDomainTrait { |
||
23 | |||
24 | /** |
||
25 | * Creates a new Module with the provided data |
||
26 | * |
||
27 | * @param mixed $data |
||
28 | * @return PayloadInterface |
||
29 | */ |
||
30 | public function create($data) { |
||
45 | |||
46 | /** |
||
47 | * Deletes a Module with the given id |
||
48 | * |
||
49 | * @param mixed $id |
||
50 | * @return PayloadInterface |
||
51 | */ |
||
52 | public function delete($id) { |
||
69 | |||
70 | /** |
||
71 | * Returns a paginated result |
||
72 | * |
||
73 | * @param Parameters $params |
||
74 | * @return PayloadInterface |
||
75 | */ |
||
76 | public function paginate(Parameters $params) { |
||
103 | |||
104 | /** |
||
105 | * Returns one Module with the given id |
||
106 | * |
||
107 | * @param mixed $id |
||
108 | * @return PayloadInterface |
||
109 | */ |
||
110 | public function read($id) { |
||
121 | |||
122 | /** |
||
123 | * Updates a Module with the given idand the provided data |
||
124 | * |
||
125 | * @param mixed $id |
||
126 | * @param mixed $data |
||
127 | * @return PayloadInterface |
||
128 | */ |
||
129 | public function update($id, $data) { |
||
157 | |||
158 | /** |
||
159 | * Implement this functionality at keeko\core\domain\ModuleDomain |
||
160 | * |
||
161 | * @param ModuleQuery $query |
||
162 | * @param mixed $filter |
||
163 | */ |
||
164 | abstract protected function applyFilter(ModuleQuery $query, $filter); |
||
165 | |||
166 | /** |
||
167 | * Returns one Module with the given id from cache |
||
168 | * |
||
169 | * @param mixed $id |
||
170 | * @return Module|null |
||
171 | */ |
||
172 | protected function get($id) { |
||
184 | |||
185 | /** |
||
186 | * Returns the service container |
||
187 | * |
||
188 | * @return ServiceContainer |
||
189 | */ |
||
190 | abstract protected function getServiceContainer(); |
||
191 | } |
||
192 |
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.