@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * |
129 | 129 | * @param EntityInterface $entity An Entity instance. |
130 | 130 | * @param array $data Entity data. |
131 | - * @return \Cake\Datasource\EntityInterface|mixed |
|
131 | + * @return EntityInterface |
|
132 | 132 | */ |
133 | 133 | protected function _patchEntity($entity, $data) |
134 | 134 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * Returns single entity by id. |
164 | 164 | * |
165 | - * @param mixed $primaryKey Primary key. |
|
165 | + * @param string $primaryKey Primary key. |
|
166 | 166 | * @return \Cake\Collection\Collection |
167 | 167 | */ |
168 | 168 | protected function _getEntity($primaryKey) |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | /** |
212 | 212 | * Model id getter. |
213 | 213 | * |
214 | - * @return mixed|string |
|
214 | + * @return string |
|
215 | 215 | */ |
216 | 216 | public function id() |
217 | 217 | { |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * Parent id getter. |
233 | 233 | * |
234 | - * @return mixed|string |
|
234 | + * @return string |
|
235 | 235 | */ |
236 | 236 | public function parentId() |
237 | 237 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | /** |
62 | 62 | * Determines the content type of the data the client has sent (i.e. in a POST request) |
63 | 63 | * |
64 | - * @param string|array|null $type Can be null (or no parameter), a string type name, or an array of types |
|
64 | + * @param string $type Can be null (or no parameter), a string type name, or an array of types |
|
65 | 65 | * @return mixed If a single type is supplied a boolean will be returned. If no type is provided |
66 | 66 | * The mapped value of CONTENT_TYPE will be returned. If an array is supplied the first type |
67 | 67 | * in the request content type will be returned. |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Execute action. |
69 | 69 | * |
70 | - * @return mixed |
|
70 | + * @return string|null |
|
71 | 71 | * @throws Exception |
72 | 72 | */ |
73 | 73 | public function execute() |
@@ -85,6 +85,9 @@ |
||
85 | 85 | $this->Action->execute(); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param integer $id |
|
90 | + */ |
|
88 | 91 | protected function _initializeAction($id, $post = []) |
89 | 92 | { |
90 | 93 | $this->_initializeRequest([ |
@@ -85,6 +85,9 @@ |
||
85 | 85 | $this->Action->execute(); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param integer $id |
|
90 | + */ |
|
88 | 91 | protected function _initializeAction($id, $post = []) |
89 | 92 | { |
90 | 93 | $this->_initializeRequest([ |
@@ -84,7 +84,7 @@ |
||
84 | 84 | * Returns current limit |
85 | 85 | * |
86 | 86 | * @param Action $action An Action instance |
87 | - * @return mixed |
|
87 | + * @return Action |
|
88 | 88 | */ |
89 | 89 | protected function _limit(Action $action) |
90 | 90 | { |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | * Get and set request. |
280 | 280 | * |
281 | 281 | * @param \Cake\Network\Request $request A request object. |
282 | - * @return \Cake\Network\Request |
|
282 | + * @return \Cake\Network\Request|null |
|
283 | 283 | */ |
284 | 284 | public function request($request = null) |
285 | 285 | { |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | * Build router settings. |
352 | 352 | * This implementation build action map for resource routes based on Service actions. |
353 | 353 | * |
354 | - * @return array |
|
354 | + * @return callable |
|
355 | 355 | */ |
356 | 356 | public function routerDefaultOptions() |
357 | 357 | { |
@@ -574,6 +574,7 @@ discard block |
||
574 | 574 | } |
575 | 575 | |
576 | 576 | /** |
577 | + * @param Result $value |
|
577 | 578 | * @return \CakeDC\Api\Service\Action\Result |
578 | 579 | */ |
579 | 580 | public function result($value = null) |
@@ -595,7 +596,7 @@ discard block |
||
595 | 596 | * Fill up response and stop execution. |
596 | 597 | * |
597 | 598 | * @param Result $result A Result instance. |
598 | - * @return Response |
|
599 | + * @return \Cake\Http\Response |
|
599 | 600 | */ |
600 | 601 | public function respond($result = null) |
601 | 602 | { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @param Request $request Cake request object. |
61 | 61 | * @param Response $response Cake response object. |
62 | - * @return mixed |
|
62 | + * @return boolean |
|
63 | 63 | */ |
64 | 64 | public function authenticate(Request $request, Response $response) |
65 | 65 | { |