You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -10,14 +10,20 @@ use App\Services\User\UserApiService;
|
||||
|
||||
class HotelApiController extends Controller
|
||||
{
|
||||
public function __construct(private readonly UserApiService $userApiService): void {}
|
||||
public function __construct(private readonly UserApiService $userApiService) {}
|
||||
|
||||
/**
|
||||
* @param array<int, string> $columns
|
||||
*/
|
||||
public function fetchUser(string $username, array $columns = ['username', 'motto', 'look']): UserResource
|
||||
{
|
||||
return new UserResource($this->userApiService->fetchUser($username, $columns));
|
||||
}
|
||||
|
||||
public function onlineUsers($columns = ['username', 'motto', 'look'], bool $randomOrder = true): OnlineUsersResource
|
||||
/**
|
||||
* @param array<int, string> $columns
|
||||
*/
|
||||
public function onlineUsers(array $columns = ['username', 'motto', 'look'], bool $randomOrder = true): OnlineUsersResource
|
||||
{
|
||||
return new OnlineUsersResource($this->userApiService->onlineUsers($columns, $randomOrder));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user