1 | <?php |
||
18 | class EndpointConfiguration |
||
19 | { |
||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $endpoints; |
||
24 | |||
25 | /** |
||
26 | * Constructor |
||
27 | * |
||
28 | * @param array $endpoints |
||
29 | */ |
||
30 | public function __construct(array $endpoints) |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Get configuration value |
||
38 | * |
||
39 | * @param string $endpoint |
||
40 | * @param string $key |
||
41 | * |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function getValue($endpoint, $key) |
||
58 | |||
59 | /** |
||
60 | * Get enpoint configuration |
||
61 | * |
||
62 | * @param string $endpoint |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function getEndpoint($endpoint) |
||
69 | } |
||
70 |