remove the repository parent interface as I cannot override its methods~
This commit is contained in:
parent
3da093350a
commit
20a9edf770
@ -4,14 +4,13 @@ namespace Slovocast\Domain\Repository\Episode;
|
||||
|
||||
use Slovocast\Domain\Entity\Episode;
|
||||
use Slovocast\Domain\Entity\Episode\File;
|
||||
use Slovocast\Domain\RepositoryInterface;
|
||||
|
||||
/**
|
||||
* The Episode File repository should consist of getting and setting the data
|
||||
* about the file stored in the database. The implementation of this class
|
||||
* should concern itself with the data _about_ the file, not the file itself.
|
||||
*/
|
||||
interface EpisodeFileRepositoryInterface extends RepositoryInterface
|
||||
interface EpisodeFileRepositoryInterface
|
||||
{
|
||||
public function get(string $location): File;
|
||||
public function getFromEpisode(Episode $episode): File;
|
||||
|
@ -4,9 +4,8 @@ namespace Slovocast\Domain\Repository\Episode;
|
||||
|
||||
use Slovocast\Domain\Entity\Episode;
|
||||
use Slovocast\Domain\Entity\Channel;
|
||||
use Slovocast\Domain\RepositoryInterface;
|
||||
|
||||
interface EpisodeRepositoryInterface extends RepositoryInterface
|
||||
interface EpisodeRepositoryInterface
|
||||
{
|
||||
public function get(int $id): Episode;
|
||||
|
||||
|
@ -2,10 +2,9 @@
|
||||
|
||||
namespace Slovocast\Domain\Repository\Image;
|
||||
|
||||
use Slovocast\Domain\RepositoryInterface;
|
||||
use Slovocast\Domain\Entity\Image;
|
||||
|
||||
interface ImageRepositoryInterface extends RepositoryInterface
|
||||
interface ImageRepositoryInterface
|
||||
{
|
||||
public function get(int $id): Image;
|
||||
public function getFromUrl(string $url): Image;
|
||||
|
@ -2,10 +2,9 @@
|
||||
|
||||
namespace Slovocast\Domain\Repository\User;
|
||||
|
||||
use Slovocast\Domain\RepositoryInterface;
|
||||
use Slovocast\Domain\Entity\User;
|
||||
|
||||
interface UserRepositoryInterface extends RepositoryInterface
|
||||
interface UserRepositoryInterface
|
||||
{
|
||||
public function get(int $id): User;
|
||||
public function getFromEmail(string $email): User;
|
||||
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Slovocast\Domain;
|
||||
|
||||
/**
|
||||
* Base Repository Interfade that defines very simple versions of the CRUD
|
||||
* methods. Most Repositories will implement these methods with overrides for
|
||||
* their entities, plus more Domain specific methods.
|
||||
*/
|
||||
interface RepositoryInterface
|
||||
{
|
||||
public function get(int|string $id): object;
|
||||
public function create(object $entity): object;
|
||||
public function update(object $entity): bool;
|
||||
public function delete(object $entity): bool;
|
||||
}
|
Loading…
Reference in New Issue
Block a user