adrema/app/Nami/Api/MembershipsOfAction.php

22 lines
419 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\MembershipEntry;
class MembershipsOfAction
{
use AsAction;
/**
* @return Collection<int, MembershipEntry>
*/
public function handle(Api $api, int $namiId): Collection
{
return $api->membershipsOf($namiId);
}
}