Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | trait ResponseHelperTrait |
||
24 | { |
||
25 | public static function getResponse(): Response |
||
26 | { |
||
27 | return static::getClient()->getResponse(); |
||
|
|||
28 | } |
||
29 | |||
30 | public static function getResponseJsonArray(): array |
||
31 | { |
||
32 | return json_decode(static::getResponse()->getContent(), true); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $path |
||
37 | * |
||
38 | * @return mixed|null |
||
39 | */ |
||
40 | public static function getResponseJsonPathValue(string $path) |
||
43 | } |
||
44 | } |
||
45 |