@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * @return array |
|
145 | + * @return string[] |
|
146 | 146 | */ |
147 | 147 | public function __sleep() |
148 | 148 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * Execute a component method within the page or component. |
186 | 186 | * Called first on a top level component which then passes the call down to the appropriate sub-component (or executes on itself if appropriate). |
187 | - * @param array|string $methodName A methodname in the format subComponent.anotherSubComponent.methodName. Either dotted string as described, or parts in an array. The top level page component shouldn't be included |
|
187 | + * @param string $methodName A methodname in the format subComponent.anotherSubComponent.methodName. Either dotted string as described, or parts in an array. The top level page component shouldn't be included |
|
188 | 188 | * @param array $args |
189 | 189 | * @throws \Exception |
190 | 190 | * @return Response |
@@ -213,6 +213,9 @@ discard block |
||
213 | 213 | return $out; |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param string $execMethod |
|
218 | + */ |
|
216 | 219 | public function getExecPath( $execMethod ) |
217 | 220 | { |
218 | 221 | $path = $this->getPath(); |
@@ -318,7 +321,7 @@ discard block |
||
318 | 321 | * Render a child component. |
319 | 322 | * |
320 | 323 | * @param $handle |
321 | - * @return Response |
|
324 | + * @return string |
|
322 | 325 | * @throws \Exception |
323 | 326 | */ |
324 | 327 | public function renderChild( $handle ) |
@@ -27,8 +27,8 @@ |
||
27 | 27 | public $content; |
28 | 28 | |
29 | 29 | /** |
30 | - * @param $type |
|
31 | - * @param $content |
|
30 | + * @param string $type |
|
31 | + * @param string $content |
|
32 | 32 | * @param null $responseCode |
33 | 33 | */ |
34 | 34 | function __construct( $type, $content, $responseCode = null ) |
@@ -69,9 +69,9 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @param array|ViewState $state |
|
72 | + * @param ViewState $state |
|
73 | 73 | * @param array $props |
74 | - * @return string |
|
74 | + * @return Response |
|
75 | 75 | */ |
76 | 76 | protected function doRender( ViewState $state, array $props = [] ) |
77 | 77 | { |