| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class PlayCountController extends Controller |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Increase play count. |
||
| 16 | * |
||
| 17 | * Increase a song's play count as the currently authenticated user. |
||
| 18 | * This request should be made whenever a song is played. |
||
| 19 | * An "interaction" record including the song and current user's data will be returned. |
||
| 20 | * |
||
| 21 | * @bodyParam song string required The ID of the song. Example: 0146d01afb742b01f28ab8b556f9a75d |
||
| 22 | * |
||
| 23 | * @responseFile responses/interaction.json |
||
| 24 | * |
||
| 25 | * @return JsonResponse |
||
| 26 | */ |
||
| 27 | 1 | public function store(StorePlayCountRequest $request) |
|
| 35 |