Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class EndPointConfigurator |
||
15 | { |
||
16 | /** |
||
17 | * @var array<string, class-string<EndPointInterface>|callable(ClientInterface):EndPointInterface> |
||
|
|||
18 | */ |
||
19 | private $endpoints; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * EndPointConfigurator constructor. |
||
24 | * |
||
25 | * @param array<string, class-string<EndPointInterface>|callable(ClientInterface):EndPointInterface> $endpoints |
||
26 | * Map of endpoint class name or factory, indexed by the endpoint name |
||
27 | */ |
||
28 | 196 | public function __construct(array $endpoints) |
|
31 | 196 | } |
|
32 | |||
33 | /** |
||
34 | * Configure the endpoint on the client |
||
35 | * |
||
36 | * @param ClientInterface $client |
||
37 | */ |
||
38 | 144 | public function configure(ClientInterface $client): void |
|
50 |