Total Complexity | 7 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | final class Context implements ContextInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var resource |
||
11 | */ |
||
12 | private $context; |
||
13 | |||
14 | public function __construct() |
||
17 | } |
||
18 | |||
19 | public function setOptions(array $options): bool |
||
20 | { |
||
21 | if (function_exists('stream_context_set_options')) { |
||
22 | return stream_context_set_options($this->context, $options); |
||
23 | } |
||
24 | |||
25 | return stream_context_set_option($this->context, $options); |
||
26 | } |
||
27 | |||
28 | public function setParameters(array $parameters): bool |
||
31 | } |
||
32 | |||
33 | public function getOptions(): array |
||
34 | { |
||
35 | return stream_context_get_options($this->context); |
||
36 | } |
||
37 | |||
38 | public function getParameters(): array |
||
41 | } |
||
42 | |||
43 | public function getContext() |
||
48 |