| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class SongController extends Controller |
||
| 14 | { |
||
| 15 | private $youTubeService; |
||
| 16 | |||
| 17 | public function __construct(MediaInformationService $mediaInformationService, YouTubeService $youTubeService) |
||
| 18 | { |
||
| 19 | parent::__construct($mediaInformationService); |
||
| 20 | $this->youTubeService = $youTubeService; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get song's extra information. |
||
| 25 | * |
||
| 26 | * Get a song's extra information. The response of this request is a superset of both corresponding |
||
| 27 | * `album/{album}/info` and `artist/{artist}/info` requests, combined with the song's lyrics and related YouTube |
||
| 28 | * videos, if applicable. This means you can (and should) cache this information somewhere ;) |
||
| 29 | * |
||
| 30 | * @responseFile responses/mediaInformation.song.show.json |
||
| 31 | * |
||
| 32 | * @return JsonResponse |
||
| 33 | */ |
||
| 34 | public function show(Song $song) |
||
| 41 | ]); |
||
| 42 | } |
||
| 44 |