1 | <?php |
||
12 | class SingleEndpointFactory implements EndpointFactory |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var Endpoint |
||
17 | */ |
||
18 | private $singleEndpoint; |
||
19 | |||
20 | /** |
||
21 | * SingleEndpointFactory constructor. |
||
22 | * @param Endpoint $singleEndpoint |
||
23 | */ |
||
24 | 2 | public function __construct(Endpoint $singleEndpoint) |
|
28 | |||
29 | /** |
||
30 | * @param string $name |
||
31 | * @param string $version |
||
32 | * @return Endpoint |
||
33 | */ |
||
34 | 1 | public function getEndpoint(string $name, string $version): Endpoint |
|
38 | |||
39 | /** |
||
40 | * @param string $version |
||
41 | * @return string[] |
||
42 | */ |
||
43 | 1 | public function getSupportedEndpoints(string $version): array |
|
47 | } |
||
48 |