Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
15 | class HLSPlaylist |
||
16 | { |
||
17 | /** |
||
18 | * @param $filename |
||
19 | * @param $representations |
||
20 | */ |
||
21 | public static function save(string $filename, array $representations): void |
||
22 | { |
||
23 | file_put_contents($filename, static::generateContents($representations, $filename)); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param array $representations |
||
28 | * @param string $filename |
||
29 | * @return string |
||
30 | */ |
||
31 | private static function generateContents(array $representations, string $filename): string |
||
40 | } |
||
41 | } |