mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
19 lines
382 B
PHP
19 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Club;
|
|
use App\Contracts\ClubRepository;
|
|
use App\Contracts\Repository;
|
|
|
|
/**
|
|
* @implements Repository<Club>
|
|
*/
|
|
final class DefaultClubRepository extends DatabaseRepository implements ClubRepository
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(fn () => Club::query(), fn ($x, $y) => Club::search($x, $y));
|
|
}
|
|
}
|