Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | class CategoryController |
||
10 | { |
||
11 | /** |
||
12 | * @var CategoryRepository |
||
13 | */ |
||
14 | private $categoryRepository; |
||
15 | |||
16 | /** |
||
17 | * @var CategoriesSerializer |
||
18 | */ |
||
19 | private $categoriesSerializer; |
||
20 | |||
21 | /** |
||
22 | * @param CategoryRepository $categoryRepository |
||
23 | * @param CategoriesSerializer $categoriesSerializer |
||
24 | */ |
||
25 | public function __construct( |
||
26 | CategoryRepository $categoryRepository, |
||
27 | CategoriesSerializer $categoriesSerializer |
||
28 | ) { |
||
29 | $this->categoryRepository = $categoryRepository; |
||
30 | $this->categoriesSerializer = $categoriesSerializer; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return Response |
||
35 | */ |
||
36 | public function getAll(): Response |
||
50 | } |
||
51 | } |
||
52 |