1 | <?php |
||
15 | class Curl extends VOResource implements Request, AutoDependency |
||
16 | { |
||
17 | /** |
||
18 | * @var array $options |
||
19 | */ |
||
20 | protected static $options = []; |
||
21 | |||
22 | /** |
||
23 | * Curl constructor. |
||
24 | * |
||
25 | * @param $value |
||
26 | */ |
||
27 | 6 | public function __construct($value) |
|
35 | |||
36 | /** |
||
37 | * @param $resource |
||
38 | * @param array $options |
||
39 | * @return static |
||
40 | */ |
||
41 | 5 | public static function fromOptions($resource, array $options = []) |
|
45 | |||
46 | /** |
||
47 | * @param array $options |
||
48 | * @return static |
||
49 | */ |
||
50 | 4 | public static function auto(array $options = []) |
|
54 | |||
55 | /** |
||
56 | * @param array $options |
||
57 | * @param $resource |
||
58 | */ |
||
59 | 5 | protected static function setOptions($resource, array $options) |
|
67 | |||
68 | /** |
||
69 | * @return mixed |
||
70 | */ |
||
71 | 1 | public function getContents() |
|
75 | |||
76 | /** |
||
77 | * @return mixed |
||
78 | */ |
||
79 | 1 | public function getInfo() |
|
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | */ |
||
87 | 6 | public function close() |
|
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | 6 | public function __destruct() |
|
99 | } |
||
100 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.