1 | <?php |
||
10 | class CurlWrapper implements Connection |
||
11 | { |
||
12 | /** |
||
13 | * @var resource |
||
14 | */ |
||
15 | private $stream; |
||
16 | |||
17 | 1 | public function __construct(array $params = array(), $socketAddress = null) |
|
18 | { |
||
19 | 1 | if (!empty($params) && $socketAddress !== null) { |
|
20 | $this->open($params, $socketAddress); |
||
21 | } |
||
22 | 1 | } |
|
23 | |||
24 | public function open(array $params, $socketAddress) |
||
32 | |||
33 | public function write($option, $string) |
||
37 | |||
38 | public function close() |
||
44 | |||
45 | public function read() |
||
49 | } |