1 | <?php |
||
21 | class Response extends AbstractResponse |
||
22 | { |
||
23 | /** |
||
24 | * @param array $array |
||
25 | * @param array $headers |
||
26 | * @param int $json_options @link http://php.net/manual/en/function.json-encode.php |
||
27 | * @return ResponseFactory |
||
28 | */ |
||
29 | public function withArray(array $array, array $headers = [], $json_options = 0) |
||
33 | |||
34 | /** |
||
35 | * Respond with a paginator, and a transformer. |
||
36 | * |
||
37 | * @param LengthAwarePaginator $paginator |
||
38 | * @param callable|\League\Fractal\TransformerAbstract $transformer |
||
39 | * @param string $resourceKey |
||
40 | * @param array $meta |
||
41 | * @return ResponseFactory |
||
42 | */ |
||
43 | 1 | public function withPaginator(LengthAwarePaginator $paginator, $transformer, $resourceKey = null, $meta = []) |
|
59 | |||
60 | /** |
||
61 | * Generates a Response with a 400 HTTP header and a given message from validator |
||
62 | * |
||
63 | * @param Validator $validator |
||
64 | * @return ResponseFactory |
||
65 | */ |
||
66 | 1 | public function errorWrongArgsValidator(Validator $validator) |
|
70 | } |
||
71 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.