1 | <?php |
||
16 | trait MakesResponses |
||
17 | { |
||
18 | /** |
||
19 | * Build a successful response. |
||
20 | * |
||
21 | * @param mixed $data |
||
22 | * @param callable|string|\Flugg\Responder\Transformers\Transformer|null $transformer |
||
23 | * @param string|null $resourceKey |
||
24 | * @return \Flugg\Responder\Http\Responses\SuccessResponseBuilder |
||
25 | */ |
||
26 | 2 | public function success($data = null, $transformer = null, string $resourceKey = null): SuccessResponseBuilder |
|
30 | |||
31 | /** |
||
32 | * Build an error response. |
||
33 | * |
||
34 | * @param mixed|null $errorCode |
||
35 | * @param string|null $message |
||
36 | * @return \Flugg\Responder\Http\Responses\ErrorResponseBuilder |
||
37 | */ |
||
38 | 2 | public function error($errorCode = null, string $message = null): ErrorResponseBuilder |
|
42 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.