@@ -89,6 +89,7 @@ public function getStatusCode()
8989 * Setter for statusCode.
9090 *
9191 * @param int $statusCode Value to set
92+ *
9293 * @return self
9394 */
9495 public function setStatusCode ($ statusCode )
@@ -103,6 +104,7 @@ public function setStatusCode($statusCode)
103104 *
104105 * @param $item
105106 * @param $callback
107+ *
106108 * @return mixed
107109 */
108110 protected function respondWithItem ($ item , $ callback )
@@ -119,6 +121,7 @@ protected function respondWithItem($item, $callback)
119121 *
120122 * @param $collection
121123 * @param $callback
124+ *
122125 * @return mixed
123126 */
124127 protected function respondWithCollection ($ collection , $ callback )
@@ -135,6 +138,7 @@ protected function respondWithCollection($collection, $callback)
135138 *
136139 * @param array $array
137140 * @param array $headers
141+ *
138142 * @return mixed
139143 */
140144 protected function respondWithArray (array $ array , array $ headers = [])
@@ -146,6 +150,7 @@ protected function respondWithArray(array $array, array $headers = [])
146150 * Response with the current error.
147151 *
148152 * @param $message
153+ *
149154 * @return mixed
150155 */
151156 protected function respondWithError ($ message )
@@ -162,6 +167,7 @@ protected function respondWithError($message)
162167 * Prepare root scope and adds meta.
163168 *
164169 * @param Item $resource
170+ *
165171 * @return mixed
166172 */
167173 protected function prepareRootScope ($ resource )
@@ -189,6 +195,7 @@ protected function rulesForCreate()
189195 * Get the validation rules for update.
190196 *
191197 * @param $id
198+ *
192199 * @return array
193200 */
194201 protected function rulesForUpdate ($ id )
@@ -212,6 +219,7 @@ public function errorForbidden($message = 'Forbidden')
212219 * Generate a Response with a 500 HTTP header and a given message.
213220 *
214221 * @param $message
222+ *
215223 * @return Response
216224 */
217225 public function errorInternalError ($ message = 'Internal Error ' )
@@ -235,6 +243,7 @@ public function errorNotFound($message = 'Resource Not Found')
235243 * Generate a Response with a 401 HTTP header and a given message.
236244 *
237245 * @param $message
246+ *
238247 * @return Response
239248 */
240249 public function errorUnauthorized ($ message = 'Unauthorized ' )
@@ -246,6 +255,7 @@ public function errorUnauthorized($message = 'Unauthorized')
246255 * Generate a Response with a 400 HTTP header and a given message.
247256 *
248257 * @param $message
258+ *
249259 * @return Response
250260 */
251261 public function errorWrongArgs ($ message = 'Wrong Arguments ' )
@@ -307,6 +317,7 @@ public function store()
307317 * GET /api/{resource}/{id}.
308318 *
309319 * @param int $id
320+ *
310321 * @return Response
311322 */
312323 public function show ($ id )
@@ -326,6 +337,7 @@ public function show($id)
326337 * PUT /api/{resource}/{id}.
327338 *
328339 * @param int $id
340+ *
329341 * @return Response
330342 */
331343 public function update ($ id )
@@ -360,6 +372,7 @@ public function update($id)
360372 * DELETE /api/{resource}/{id}.
361373 *
362374 * @param int $id
375+ *
363376 * @return Response
364377 */
365378 public function destroy ($ id )
0 commit comments