| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class RecentlyPlayedController extends Controller |
||
| 13 | { |
||
| 14 | private $interactionRepository; |
||
| 15 | |||
| 16 | public function __construct(InteractionService $interactionService, InteractionRepository $interactionRepository) |
||
| 17 | { |
||
| 18 | parent::__construct($interactionService); |
||
| 19 | $this->interactionRepository = $interactionRepository; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get recently played songs. |
||
| 24 | * |
||
| 25 | * Get a list of songs recently played by the current user. |
||
| 26 | * |
||
| 27 | * @queryParam count The maximum number of songs to be returned. Example: 2 |
||
| 28 | * @response ["0146d01afb742b01f28ab8b556f9a75d", "c741133cb8d1982a5c60b1ce2a1e6e47"] |
||
| 29 | */ |
||
| 30 | public function index(Request $request, ?int $count = null) |
||
| 33 | } |
||
| 34 | } |
||
| 35 |