| 1 | <?php |
||
| 7 | class Request |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The client ai handle. |
||
| 11 | * |
||
| 12 | * @var mixed |
||
| 13 | */ |
||
| 14 | protected $handler; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create new Request instance. |
||
| 18 | * |
||
| 19 | * @param mixed $handler |
||
| 20 | */ |
||
| 21 | 132 | public function __construct($handler) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Run the request. |
||
| 28 | * |
||
| 29 | * @param string $method |
||
| 30 | * @param string $url |
||
| 31 | * @param array $data |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 132 | public function run($method, $url, array $data = []) |
|
| 46 | } |
||
| 47 |