1 | <?php |
||
11 | class Normalizer |
||
12 | { |
||
13 | private $presenterNormalizer; |
||
14 | |||
15 | private $templateNormalizer; |
||
16 | |||
17 | private $cacheNormalizer; |
||
18 | |||
19 | private $controllerNormalizer; |
||
20 | |||
21 | private $contextAsNormalizer; |
||
22 | |||
23 | /** |
||
24 | * Normalizer constructor which accepts dependencies. |
||
25 | * |
||
26 | * @param TemplateNormalizer $templateNormalizer |
||
27 | * @param CacheNormalizer $cacheNormalizer |
||
28 | * @param PresenterNormalizer $presenterNormalizer |
||
29 | * @param ControllerNormalizer $controllerNormalizer |
||
30 | * @param ContextAsNormalizer $contextAsNormalizer |
||
31 | */ |
||
32 | 13 | public function __construct( |
|
45 | |||
46 | /** |
||
47 | * Figures out and sets the widget configs according to conventions. |
||
48 | * |
||
49 | * @param object $widget |
||
50 | */ |
||
51 | 12 | public function normalizeWidgetConfig($widget) |
|
66 | |||
67 | /** |
||
68 | * Figures out and sets json widget configs according to conventions. |
||
69 | * |
||
70 | * @param object $widget |
||
71 | */ |
||
72 | 1 | public function normalizeJsonWidget($widget) |
|
78 | } |
||
79 |