| 1 | <?php |
||
| 15 | class Http { |
||
| 16 | |||
| 17 | /** @var Factory */ |
||
| 18 | protected $factory; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Http constructor. |
||
| 22 | * |
||
| 23 | * @param Factory $factory |
||
| 24 | */ |
||
| 25 | 1 | public function __construct(Factory $factory) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Make a http query. |
||
| 32 | * |
||
| 33 | * @param string $url |
||
| 34 | * @param callable $callback |
||
| 35 | * @param null|mixed $additionalData If you need to pass additional metadata. |
||
| 36 | * You will get this back in the callback. |
||
| 37 | * @param array $options curl options array |
||
| 38 | */ |
||
| 39 | 1 | public function call($url, $callback, $additionalData = null, $options = []) |
|
| 46 | } |
||
| 47 |