| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class SongController extends Controller |
||
| 13 | { |
||
| 14 | private $songRepository; |
||
| 15 | |||
| 16 | 2 | public function __construct(DownloadService $downloadService, SongRepository $songRepository) |
|
| 17 | { |
||
| 18 | 2 | parent::__construct($downloadService); |
|
| 19 | 2 | $this->songRepository = $songRepository; |
|
| 20 | 2 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Download one or several songs. |
||
| 24 | * |
||
| 25 | * @queryParam songs array An array of song IDs |
||
| 26 | * |
||
| 27 | * @response [] |
||
| 28 | */ |
||
| 29 | 2 | public function show(SongRequest $request) |
|
| 34 | } |
||
| 35 | } |
||
| 36 |