mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
36 lines
865 B
PHP
36 lines
865 B
PHP
<?php
|
|
|
|
namespace App\Contracts;
|
|
|
|
use App\Repositories\DocumentRepository;
|
|
|
|
interface UnitOfWork
|
|
{
|
|
public function anime(): AnimeRepository;
|
|
|
|
public function manga(): MangaRepository;
|
|
|
|
public function characters(): CharacterRepository;
|
|
|
|
public function people(): PeopleRepository;
|
|
|
|
public function clubs(): ClubRepository;
|
|
|
|
public function producers(): ProducerRepository;
|
|
|
|
public function magazines(): MagazineRepository;
|
|
|
|
public function users(): UserRepository;
|
|
|
|
public function animeGenres(): GenreRepository;
|
|
|
|
public function mangaGenres(): GenreRepository;
|
|
|
|
/**
|
|
* Returns the repository instance for a document collection which doesn't have a model representation.
|
|
* @param string $tableName
|
|
* @return DocumentRepository
|
|
*/
|
|
public function documents(string $tableName): DocumentRepository;
|
|
}
|