| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CategoryModel extends Model |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * get the list of categories and return all the data |
||
| 12 | * @return array the categories |
||
| 13 | * @throws \ReflectionException |
||
| 14 | */ |
||
| 15 | public function getCategories() |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * get all the menu elements from the database |
||
| 22 | * @return array the categories and access URL |
||
| 23 | * @throws \ReflectionException |
||
| 24 | */ |
||
| 25 | public function getMenu(): array |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getCategoryDetails(int $categoryId) |
||
| 41 | } |
||
| 42 | } |