adrema/app/Nami/Api/CoursesOfAction.php

22 lines
393 B
PHP
Raw Normal View History

2023-02-12 23:18:58 +01:00
<?php
namespace App\Nami\Api;
use Illuminate\Support\Collection;
use Lorisleiva\Actions\Concerns\AsAction;
use Zoomyboy\LaravelNami\Api;
use Zoomyboy\LaravelNami\Data\Course;
class CoursesOfAction
{
use AsAction;
/**
* @return Collection<int, Course>
*/
public function handle(Api $api, int $namiId): Collection
{
return $api->coursesOf($namiId);
}
}