| 1 | <?php |
||
| 9 | class EndpointRepository |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ContainerInterface |
||
| 13 | */ |
||
| 14 | private $container; |
||
| 15 | /** |
||
| 16 | * @var BuilderFactory |
||
| 17 | */ |
||
| 18 | private $builderFactory; |
||
| 19 | |||
| 20 | private $endpoints = []; |
||
| 21 | |||
| 22 | public function __construct(array $endpoints, ContainerInterface $container, BuilderFactory $builderFactory) |
||
| 30 | |||
| 31 | public function has(string $name): bool |
||
| 35 | |||
| 36 | public function addEndpoint(string $name, string $handlerClassName): self |
||
| 42 | |||
| 43 | public function getByName(string $name): Endpoint |
||
| 51 | |||
| 52 | private function getEndpoints(): iterable |
||
| 56 | } |
||
| 57 |