1 | <?php |
||
13 | class AsyncHttpGenericService implements AsyncHttpService |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $method; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $url; |
||
25 | |||
26 | /** |
||
27 | * @var callable |
||
28 | */ |
||
29 | private $callback; |
||
30 | |||
31 | 1 | public function __construct($method, $url, callable $callback = null) |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | 1 | public function getMethod() |
|
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | 1 | public function getUrl() |
|
53 | |||
54 | /** |
||
55 | * @param $data |
||
56 | * @param Response $response |
||
57 | * |
||
58 | * @return void |
||
59 | */ |
||
60 | 1 | public function execute($data, Response $response) |
|
67 | } |