1 | <?php |
||
6 | class Response |
||
7 | { |
||
8 | protected $body; |
||
9 | protected $encrypter; |
||
10 | protected $request; |
||
11 | protected $response; |
||
12 | |||
13 | public function __construct(ResponseInterface $response, Request $request) |
||
20 | |||
21 | /** |
||
22 | * @return mixed |
||
23 | */ |
||
24 | public function get($key, $default = null) |
||
32 | |||
33 | /** |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getDecrypted($key, $default = null, $assocKeys = []) |
||
46 | |||
47 | public function has($key) |
||
51 | |||
52 | public function isSuccessful() |
||
56 | |||
57 | public function isValid() |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
|
|||
75 | */ |
||
76 | protected function decrypt($data, $nonce = null, $assocKeys = []) |
||
100 | } |
||
101 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.If the return type contains the type array, this check recommends the use of a more specific type like
String[]
orarray<String>
.