| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class YouTubeController extends Controller |
||
| 14 | { |
||
| 15 | private $youTubeService; |
||
| 16 | |||
| 17 | 1 | public function __construct(YouTubeService $youTubeService) |
|
| 18 | { |
||
| 19 | 1 | $this->youTubeService = $youTubeService; |
|
| 20 | 1 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Search for YouTube videos. |
||
| 24 | * |
||
| 25 | * Search YouTube for videos related to a song (using its title and artist name). |
||
| 26 | * |
||
| 27 | * @bodyParam pageToken string The [`nextPageToken`](https://developers.google.com/youtube/v3/guides/implementation/pagination), if applicable. |
||
| 28 | * @responseFile responses/youTube.searchVideosRelatedToSong.json |
||
| 29 | * |
||
| 30 | * @return JsonResponse |
||
| 31 | */ |
||
| 32 | 1 | public function searchVideosRelatedToSong(YouTubeSearchRequest $request, Song $song) |
|
| 35 | } |
||
| 36 | } |
||
| 37 |