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