1 | <?php |
||
15 | trait ResponseCastable |
||
16 | { |
||
17 | /** |
||
18 | * @param \Psr\Http\Message\ResponseInterface $response |
||
19 | * @param string|null $type |
||
20 | * @param array $forceArrayKeys |
||
21 | * |
||
22 | * @return array|\Kaylyu\Alipay\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
23 | * |
||
24 | * @throws \Kaylyu\Alipay\Kernel\Exceptions\InvalidConfigException |
||
25 | * @throws \Kaylyu\Alipay\Kernel\Exceptions\Exception |
||
26 | */ |
||
27 | protected function castResponseToType(ResponseInterface $response, $type = null, array $forceArrayKeys = []) |
||
52 | |||
53 | /** |
||
54 | * @param mixed $response |
||
55 | * @param string|null $type |
||
56 | * |
||
57 | * @return array|\Kaylyu\Alipay\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
58 | * |
||
59 | * @throws \Kaylyu\Alipay\Kernel\Exceptions\InvalidArgumentException |
||
60 | * @throws \Kaylyu\Alipay\Kernel\Exceptions\InvalidConfigException |
||
61 | * @throws \Kaylyu\Alipay\Kernel\Exceptions\Exception |
||
62 | */ |
||
63 | protected function detectAndCastResponseToType($response, $type = null) |
||
88 | } |
||
89 |