Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class ExportHLSPlaylist |
||
16 | { |
||
17 | /** |
||
18 | * @param $filename |
||
19 | * @param $representations |
||
20 | * @param $basename |
||
21 | */ |
||
22 | public static function savePlayList($filename, $representations, $basename) |
||
23 | { |
||
24 | file_put_contents($filename, static::generateContents($representations, $basename)); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param $representations |
||
29 | * @param $basename |
||
30 | * @return string |
||
31 | */ |
||
32 | private static function generateContents($representations, $basename) |
||
45 | } |
||
46 | } |