Total Complexity | 4 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class ResponderFactory implements ResponderFactoryInterface |
||
10 | { |
||
11 | /** |
||
12 | * @param array{ |
||
13 | * ignoredArticles: string, |
||
14 | * index: array<array{ |
||
15 | * name: string, |
||
16 | * artist: array<array{ |
||
17 | * id: string, |
||
18 | * name: string, |
||
19 | * coverArt: string, |
||
20 | * artistImageUrl: string, |
||
21 | * albumCount: int, |
||
22 | * starred?: string |
||
23 | * }> |
||
24 | * }> |
||
25 | * } $artistList |
||
26 | */ |
||
27 | 1 | public function createArtistsResponder( |
|
28 | array $artistList |
||
29 | ): ResponderInterface { |
||
30 | 1 | return new ArtistsResponder( |
|
31 | $artistList, |
||
32 | ); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param array{ |
||
37 | * valid: string, |
||
38 | * email: string, |
||
39 | * licenseExpires: string |
||
40 | * } $licenseData |
||
41 | */ |
||
42 | 1 | public function createLicenseResponder( |
|
47 | ); |
||
48 | } |
||
49 | |||
50 | 1 | public function createPingResponder(): ResponderInterface |
|
51 | { |
||
52 | 1 | return new PingResponder(); |
|
53 | } |
||
54 | |||
55 | 1 | public function createCoverArtResponder( |
|
62 | ); |
||
63 | } |
||
64 | } |
||
65 |