Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
15 | class RequestOptions |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $endpoint; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $version; |
||
25 | |||
26 | /** |
||
27 | * RequestOptions constructor. |
||
28 | * |
||
29 | * @param string $endpoint |
||
30 | * @param string $version |
||
31 | */ |
||
32 | 4 | public function __construct($endpoint, $version) |
|
33 | { |
||
34 | 4 | $this->endpoint = $endpoint; |
|
35 | 4 | $this->version = $version; |
|
36 | 4 | } |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getEndpoint() |
||
42 | { |
||
43 | return $this->endpoint; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getVersion() |
||
52 | } |
||
53 | } |
||
54 |