| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Roles extends AbstractRepository |
||
| 13 | { |
||
| 14 | public const API_ROOT = "roles"; |
||
| 15 | |||
| 16 | public function getModelClass(): string |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @throws MethodNotImplementedException |
||
| 23 | */ |
||
| 24 | public function create(AbstractModel $model): ?AbstractModel |
||
| 25 | { |
||
| 26 | throw new MethodNotImplementedException( |
||
| 27 | "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @throws MethodNotImplementedException |
||
| 33 | */ |
||
| 34 | public function update(AbstractModel $model): ?AbstractModel |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @throws MethodNotImplementedException |
||
| 43 | */ |
||
| 44 | public function delete(AbstractModel $model): void |
||
| 51 |