1 | <?php |
||
5 | class RequestHelper |
||
6 | { |
||
7 | /** |
||
8 | * @param string|null $sourceUrl |
||
9 | * @param array $data |
||
10 | * @return array |
||
11 | */ |
||
12 | public static function createRequestData($data, $sourceUrl = null) |
||
19 | |||
20 | /** |
||
21 | * Check if specified data exists in response |
||
22 | * @param $response |
||
23 | * @param null $key |
||
24 | * @return array|bool |
||
25 | */ |
||
26 | public static function getDataFromResponse($response, $key = null) |
||
38 | } |