1 | <?php |
||
38 | class ViewHelperConfig extends ContainerConfig |
||
39 | { |
||
40 | |||
41 | protected $specs = []; |
||
42 | |||
43 | /** |
||
44 | * __construct |
||
45 | * |
||
46 | * @param array $specs helper specs |
||
47 | * |
||
48 | * @return mixed |
||
|
|||
49 | * |
||
50 | * @access public |
||
51 | */ |
||
52 | public function __construct(array $specs = []) |
||
56 | |||
57 | /** |
||
58 | * AddHelpers |
||
59 | * |
||
60 | * @param array $specs DESCRIPTION |
||
61 | * |
||
62 | * @return mixed |
||
63 | * @throws exceptionclass [description] |
||
64 | * |
||
65 | * @access public |
||
66 | */ |
||
67 | public function addHelpers(array $specs) |
||
71 | |||
72 | /** |
||
73 | * Define Aura\View and Aura\Html factories and services |
||
74 | * |
||
75 | * @param Container $di DI Container |
||
76 | * |
||
77 | * @return void |
||
78 | * |
||
79 | * @access public |
||
80 | * |
||
81 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
82 | */ |
||
83 | public function define(Container $di) |
||
112 | |||
113 | /** |
||
114 | * Modify |
||
115 | * |
||
116 | * @param Container $di DESCRIPTION |
||
117 | * |
||
118 | * @return null |
||
119 | * |
||
120 | * @access public |
||
121 | * |
||
122 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
123 | */ |
||
124 | public function modify(Container $di) |
||
132 | |||
133 | /** |
||
134 | * GetFactories |
||
135 | * |
||
136 | * @param callable $resolve DESCRIPTION |
||
137 | * |
||
138 | * @return mixed |
||
139 | * |
||
140 | * @access protected |
||
141 | * |
||
142 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
143 | */ |
||
144 | protected function getFactories(callable $resolve) |
||
154 | |||
155 | } |
||
156 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.