Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | trait Proxy |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private $proxy = []; |
||
19 | |||
20 | /** |
||
21 | * @return bool |
||
22 | */ |
||
23 | public function hasProxy() : bool |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | */ |
||
31 | public function getProxy() : array |
||
32 | { |
||
33 | return $this->proxy; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * http://user:password@localhost:3128 |
||
38 | * @param string $dsn |
||
39 | * @return static |
||
40 | */ |
||
41 | public function setProxy(string $dsn) : self |
||
56 | } |
||
57 | } |
||
58 |