| 1 | <?php |
||
| 10 | class EndpointFactory implements \LunixREST\Server\Router\EndpointFactory\EndpointFactory |
||
| 11 | { |
||
| 12 | |||
| 13 | protected $geoPhone; |
||
| 14 | |||
| 15 | public function __construct(GeoPhone $geoPhone) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $name |
||
| 22 | * @param string $version |
||
| 23 | * @return Endpoint |
||
| 24 | * @throws UnableToCreateEndpointException |
||
| 25 | * @throws UnknownEndpointException |
||
| 26 | */ |
||
| 27 | public function getEndpoint(string $name, string $version): Endpoint |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $version |
||
| 44 | * @return string[] |
||
| 45 | */ |
||
| 46 | public function getSupportedEndpoints(string $version): array |
||
| 50 | } |
||
| 51 |