1 | <?php |
||
4 | class ParsedURL |
||
5 | { |
||
6 | /** |
||
7 | * @var string |
||
8 | */ |
||
9 | private $endpoint; |
||
10 | /** |
||
11 | * @var null|string |
||
12 | */ |
||
13 | private $element; |
||
14 | /** |
||
15 | * @var null|string |
||
16 | */ |
||
17 | private $version; |
||
18 | /** |
||
19 | * @var null|string |
||
20 | */ |
||
21 | private $apiKey; |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $acceptableMIMETypes; |
||
26 | /** |
||
27 | * @var null|string |
||
28 | */ |
||
29 | private $queryString; |
||
30 | |||
31 | /** |
||
32 | * ParsedURL constructor. |
||
33 | * @param string $endpoint |
||
34 | * @param null|string $element |
||
35 | * @param null|string $version |
||
36 | * @param null|string $apiKey |
||
37 | * @param array $acceptableMIMETypes |
||
38 | * @param null|string $queryString |
||
39 | */ |
||
40 | 3 | public function __construct(string $endpoint, ?string $element, ?string $version, ?string $apiKey, array $acceptableMIMETypes, ?string $queryString) |
|
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 3 | public function getEndpoint(): string |
|
57 | |||
58 | /** |
||
59 | * @return null|string |
||
60 | */ |
||
61 | 3 | public function getElement() |
|
65 | |||
66 | /** |
||
67 | * @return null|string |
||
68 | */ |
||
69 | 3 | public function getVersion() |
|
73 | |||
74 | /** |
||
75 | * @return null|string |
||
76 | */ |
||
77 | 3 | public function getApiKey() |
|
81 | |||
82 | /** |
||
83 | * @return array |
||
84 | */ |
||
85 | 3 | public function getAcceptableMIMETypes(): array |
|
89 | |||
90 | /** |
||
91 | * @return null|string |
||
92 | */ |
||
93 | 1 | public function getQueryString() |
|
97 | } |
||
98 |