1 | <?php |
||
10 | class Normalizer |
||
11 | { |
||
12 | private $presenterNormalizer; |
||
13 | private $templateNormalizer; |
||
14 | private $cacheNormalizer; |
||
15 | private $controllerNormalizer; |
||
16 | |||
17 | /** |
||
18 | * Normalizer constructor which accepts dependencies. |
||
19 | * @param TemplateNormalizer $templateNormalizer |
||
20 | * @param CacheNormalizer $cacheNormalizer |
||
21 | * @param PresenterNormalizer $presenterNormalizer |
||
22 | * @param ControllerNormalizer $controllerNormalizer |
||
23 | */ |
||
24 | public function __construct( |
||
35 | |||
36 | /** |
||
37 | * Figures out and sets the widget configs according to conventions. |
||
38 | * @param object $widget |
||
39 | */ |
||
40 | public function normalizeWidgetConfig($widget) |
||
55 | |||
56 | /** |
||
57 | * Figures out and sets json widget configs according to conventions. |
||
58 | * @param object $widget |
||
59 | */ |
||
60 | public function normalizeJsonWidget($widget) |
||
66 | |||
67 | /** |
||
68 | * Figures out what the variable name should be in view file. |
||
69 | * @param object $widget |
||
70 | * @return null |
||
71 | */ |
||
72 | private function normalizeContextAs($widget) |
||
81 | } |
||
82 |