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