@@ -41,6 +41,9 @@ |
||
41 | 41 | */ |
42 | 42 | protected $message; |
43 | 43 | |
44 | + /** |
|
45 | + * @param StatusInterface|null $status |
|
46 | + */ |
|
44 | 47 | public function __construct($status, $message = '[System]') |
45 | 48 | { |
46 | 49 | if (!$status instanceof StatusInterface) { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * Gets the name of a file |
131 | 131 | * |
132 | - * @return mixed |
|
132 | + * @return string |
|
133 | 133 | */ |
134 | 134 | public function getName() |
135 | 135 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * Gets the uploaded date of a file |
199 | 199 | * |
200 | - * @return mixed |
|
200 | + * @return null|\DateTime |
|
201 | 201 | */ |
202 | 202 | public function getDateUploaded() |
203 | 203 | { |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | /** |
234 | 234 | * Gets the length of the file |
235 | 235 | * |
236 | - * @return mixed |
|
236 | + * @return string|null |
|
237 | 237 | */ |
238 | 238 | public function getLength() |
239 | 239 | { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | /** |
98 | 98 | * Set the allow multiple selections flag. |
99 | 99 | * |
100 | - * @param Callable|bool $flagOrCallback When a Callable is passed, it must return bool. |
|
100 | + * @param \Closure $flagOrCallback When a Callable is passed, it must return bool. |
|
101 | 101 | * |
102 | 102 | * @return self |
103 | 103 | */ |
@@ -93,7 +93,7 @@ |
||
93 | 93 | * @param array $data Form values |
94 | 94 | * @param Collection $object |
95 | 95 | * |
96 | - * @return object |
|
96 | + * @return NodeInterface |
|
97 | 97 | */ |
98 | 98 | public function hydrate(array $data, $object) |
99 | 99 | { |
@@ -110,7 +110,6 @@ |
||
110 | 110 | * @see \Core\Controller\Plugin\SearchForm::get() |
111 | 111 | * |
112 | 112 | * @param $elementsFieldset |
113 | - * @param null $buttonsFieldset |
|
114 | 113 | * @param string $as The name of the key in the result array. |
115 | 114 | * |
116 | 115 | * @return self |
@@ -83,6 +83,11 @@ |
||
83 | 83 | return $content; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param FormInterface $form |
|
88 | + * |
|
89 | + * @return null|FormInterface |
|
90 | + */ |
|
86 | 91 | public function renderElements($form, $colMap = null, $buttonsSpan = null) |
87 | 92 | { |
88 | 93 | if ($form instanceOf ViewPartialProviderInterface) { |
@@ -89,7 +89,7 @@ |
||
89 | 89 | /** |
90 | 90 | * exclude methods from the automatism |
91 | 91 | * |
92 | - * @param $methods |
|
92 | + * @param string[] $methods |
|
93 | 93 | */ |
94 | 94 | public function setExcludeMethods($methods) |
95 | 95 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | /** |
25 | 25 | * @param $data |
26 | - * @return mixed |
|
26 | + * @return Snapshot |
|
27 | 27 | * @ODM\PreUpdate |
28 | 28 | */ |
29 | 29 | public function __invoke($data) |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @param string $name |
126 | 126 | * @param mixed $value |
127 | - * @return ViewModel |
|
127 | + * @return HTMLTemplateMessage |
|
128 | 128 | */ |
129 | 129 | public function setVariable($name, $value) |
130 | 130 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * Resets the internal variable container to an empty container. |
187 | 187 | * |
188 | - * @return ViewModel |
|
188 | + * @return HTMLTemplateMessage |
|
189 | 189 | */ |
190 | 190 | public function clearVariables() |
191 | 191 | { |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | |
196 | 196 | /** |
197 | 197 | * |
198 | - * @param $template |
|
198 | + * @param string $template |
|
199 | 199 | * |
200 | 200 | * @return self |
201 | 201 | */ |
@@ -205,6 +205,9 @@ discard block |
||
205 | 205 | return $this; |
206 | 206 | } |
207 | 207 | |
208 | + /** |
|
209 | + * @return string |
|
210 | + */ |
|
208 | 211 | public function getTemplate() |
209 | 212 | { |
210 | 213 | return $this->template; |