| 1 | <?php |
||
| 8 | class Curl |
||
| 9 | { |
||
| 10 | private $handle; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Constructor stores cUrl handle in object |
||
| 14 | * @throws \LogicException when php curl library is not installed |
||
| 15 | */ |
||
| 16 | public function __construct() { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Magic method to execute curl_xxx calls |
||
| 26 | * |
||
| 27 | * @param string $name Method name (should be camelized) |
||
| 28 | * @param array $arguments Method arguments |
||
| 29 | * |
||
| 30 | * @return mixed |
||
| 31 | * @throws \LogicException |
||
| 32 | */ |
||
| 33 | public function __call($name, $arguments) { |
||
| 41 | |||
| 42 | } |