1 | <?php namespace Phabricator\Client\Curl; |
||
18 | class CurlClient implements ClientInterface { |
||
19 | |||
20 | /** |
||
21 | * Hold options that set in request when creating it |
||
22 | * |
||
23 | * @type array |
||
24 | */ |
||
25 | protected $options = []; |
||
26 | |||
27 | /** |
||
28 | * {@inheritDoc} |
||
29 | * |
||
30 | * @codeCoverageIgnore |
||
31 | */ |
||
32 | public function request($url, $requestData) { |
||
40 | |||
41 | /** |
||
42 | * Set option for CURL request |
||
43 | * |
||
44 | * @param int $option CURLOPT_* constants |
||
45 | * @param mixed $value The option value |
||
46 | * |
||
47 | * @return \Phabricator\Client\Curl\CurlClient |
||
48 | */ |
||
49 | 1 | public function setOption($option, $value) { |
|
54 | |||
55 | /** |
||
56 | * Set CIRL request options from array. The array key is the option |
||
57 | * and the value is used to option value. |
||
58 | * |
||
59 | * @param array $options |
||
60 | * |
||
61 | * @return \Phabricator\Client\Curl\CurlClient |
||
62 | */ |
||
63 | 1 | public function setOptionArray(array $options) { |
|
68 | |||
69 | /** |
||
70 | * Set the defined options on the given CurlRequest instance |
||
71 | * |
||
72 | * @param \Phabricator\Client\Curl\CurlRequest $request |
||
73 | * @param $options |
||
74 | * |
||
75 | * @throws \BuildR\Foundation\Exception\RuntimeException |
||
76 | * |
||
77 | * @codeCoverageIgnore |
||
78 | */ |
||
79 | protected function setOptionsOnRequest(CurlRequest $request, $options) { |
||
84 | |||
85 | } |
||
86 |