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