Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class FeatureSetFactory implements FeatureSetFactoryInterface |
||
13 | { |
||
14 | 1 | public function getVersion(): string |
|
15 | { |
||
16 | 1 | return '1.16.1'; |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * @return array<string, callable(): Method\V1161MethodInterface> |
||
|
|||
21 | */ |
||
22 | 4 | public function getMethods(): array |
|
23 | { |
||
24 | return [ |
||
25 | 4 | 'ping.view' => fn (): Method\V1161MethodInterface => $this->createPingMethod(), |
|
26 | 4 | 'getLicense.view' => fn (): Method\V1161MethodInterface => $this->createGetLicenseMethod(), |
|
27 | 4 | 'getArtists.view' => fn (): Method\V1161MethodInterface => $this->createGetArtistsMethod(), |
|
28 | 4 | 'getCoverArt.view' => fn (): Method\V1161MethodInterface => $this->createGetCoverArtMethod(), |
|
29 | ]; |
||
30 | } |
||
31 | |||
32 | 1 | public function createPingMethod(): Method\V1161MethodInterface |
|
33 | { |
||
34 | 1 | return new Method\PingMethod( |
|
35 | 1 | new ResponderFactory(), |
|
36 | ); |
||
37 | } |
||
38 | |||
39 | 1 | public function createGetArtistsMethod(): Method\V1161MethodInterface |
|
40 | { |
||
41 | 1 | return new Method\GetArtistsMethod( |
|
42 | 1 | new ResponderFactory(), |
|
43 | ); |
||
44 | } |
||
45 | |||
46 | 1 | public function createGetLicenseMethod(): Method\V1161MethodInterface |
|
50 | ); |
||
51 | } |
||
52 | |||
53 | 1 | public function createGetCoverArtMethod(): Method\V1161MethodInterface |
|
57 | ); |
||
58 | } |
||
59 | } |
||
60 |