1 | <?php |
||
27 | class ListingPageProcessor implements ListingPageProcessorInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var Design |
||
31 | */ |
||
32 | private $catalogDesign; |
||
33 | |||
34 | /** |
||
35 | * @var CategoryUrlPathGenerator |
||
36 | */ |
||
37 | private $categoryUrlPathGenerator; |
||
38 | |||
39 | /** |
||
40 | * @var PageConfig |
||
41 | */ |
||
42 | private $pageConfig; |
||
43 | |||
44 | /** |
||
45 | * ListingPageProcessor constructor. |
||
46 | * @param Design $design |
||
47 | * @param CategoryUrlPathGenerator $categoryUrlPathGenerator |
||
48 | */ |
||
49 | public function __construct(Design $design, CategoryUrlPathGenerator $categoryUrlPathGenerator) |
||
54 | |||
55 | /** |
||
56 | * @param CategoryInterface | Category $category |
||
57 | * @param Page $page |
||
58 | * @return void |
||
59 | */ |
||
60 | public function process(CategoryInterface $category, Page $page): void |
||
72 | |||
73 | /** |
||
74 | * @param DataObject $settings |
||
75 | * @return void |
||
76 | */ |
||
77 | private function applyCustomDesign(DataObject $settings) : void |
||
84 | |||
85 | /** |
||
86 | * @param Page $page |
||
87 | * @param DataObject $settings |
||
88 | */ |
||
89 | private function applyCustomPageLayout(Page $page, DataObject $settings) : void |
||
96 | |||
97 | /** |
||
98 | * @param CategoryInterface | Category $category |
||
99 | * @return string |
||
100 | */ |
||
101 | private function getCategoryType(CategoryInterface $category) : string |
||
111 | |||
112 | /** |
||
113 | * @param CategoryInterface | Category $category |
||
114 | * @param Page $page |
||
115 | * @param string $type |
||
116 | * @return void |
||
117 | */ |
||
118 | private function addPageLayoutHandles(CategoryInterface $category, Page $page, string $type) : void |
||
127 | |||
128 | /** |
||
129 | * @param Page $page |
||
130 | * @param DataObject $settings |
||
131 | * @return void |
||
132 | */ |
||
133 | private function applyLayoutUpdates(Page $page, DataObject $settings) : void |
||
142 | |||
143 | /** |
||
144 | * @param Page $page |
||
145 | * @param CategoryInterface $category |
||
146 | * @return void |
||
147 | */ |
||
148 | private function configurePage(Page $page, CategoryInterface $category) : void |
||
155 | } |
||
156 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.