1 | <?php |
||
19 | class Endpoint extends AbstractMultiton implements EndpointInterface |
||
20 | { |
||
21 | |||
22 | protected static $live = [ |
||
23 | 'scheme' => 'https', |
||
24 | 'host' => 'api.vipps.no', |
||
25 | 'port' => '443', |
||
26 | 'path' => '', |
||
27 | ]; |
||
28 | |||
29 | protected static $test = [ |
||
30 | 'scheme' => 'https', |
||
31 | 'host' => 'apitest.vipps.no', |
||
32 | 'port' => '443', |
||
33 | 'path' => '', |
||
34 | ]; |
||
35 | |||
36 | protected $scheme; |
||
37 | protected $host; |
||
38 | protected $port; |
||
39 | protected $path; |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | protected static function initializeMembers() |
||
57 | |||
58 | protected function __construct($key, $scheme, $host, $port, $path) |
||
66 | |||
67 | /** |
||
68 | * Gets scheme value. |
||
69 | * |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getScheme() |
||
76 | |||
77 | /** |
||
78 | * Gets host value. |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getHost() |
||
86 | |||
87 | /** |
||
88 | * Gets port value. |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getPort() |
||
96 | |||
97 | /** |
||
98 | * Gets path value. |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getPath() |
||
106 | |||
107 | /** |
||
108 | * Get connection base uri. |
||
109 | * |
||
110 | * @return \Psr\Http\Message\UriInterface |
||
111 | */ |
||
112 | public function getUri() |
||
123 | } |
||
124 |