Total Complexity | 5 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class GetRandomSongsResponder implements FormattedResponderInterface |
||
12 | { |
||
13 | /** |
||
14 | * @param Traversable<array{ |
||
15 | * id: string, |
||
16 | * parent: string, |
||
17 | * title: string, |
||
18 | * isDir: string, |
||
19 | * album: string, |
||
20 | * artist: string, |
||
21 | * track: int, |
||
22 | * year: int, |
||
23 | * coverArt: string, |
||
24 | * duration: int, |
||
25 | * size: int |
||
26 | * }> $songs |
||
27 | */ |
||
28 | 4 | public function __construct( |
|
29 | private readonly Traversable $songs, |
||
30 | ) { |
||
31 | 4 | } |
|
32 | |||
33 | 1 | public function writeXml(XMLArray $XMLArray): void |
|
44 | 1 | ); |
|
45 | } |
||
46 | 1 | } |
|
47 | 1 | ); |
|
48 | } |
||
49 | |||
50 | 1 | public function writeJson(array &$root): void |
|
53 | } |
||
54 | |||
55 | 1 | public function isBinaryResponder(): bool |
|
60 |