From 20a9edf770fd3dab8356380cdbed31954f47577d Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Fri, 15 Nov 2024 01:18:07 +0000 Subject: [PATCH] remove the repository parent interface as I cannot override its methods~ --- .../Episode/EpisodeFileRepositoryInterface.php | 3 +-- .../Episode/EpisodeRepositoryInterface.php | 3 +-- .../Image/ImageRepositoryInterface.php | 3 +-- .../Repository/User/UserRepositoryInterface.php | 3 +-- app/src/Domain/RepositoryInterface.php | 16 ---------------- 5 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 app/src/Domain/RepositoryInterface.php diff --git a/app/src/Domain/Repository/Episode/EpisodeFileRepositoryInterface.php b/app/src/Domain/Repository/Episode/EpisodeFileRepositoryInterface.php index 0853d27..f573023 100644 --- a/app/src/Domain/Repository/Episode/EpisodeFileRepositoryInterface.php +++ b/app/src/Domain/Repository/Episode/EpisodeFileRepositoryInterface.php @@ -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; diff --git a/app/src/Domain/Repository/Episode/EpisodeRepositoryInterface.php b/app/src/Domain/Repository/Episode/EpisodeRepositoryInterface.php index d6862c5..ca1603b 100644 --- a/app/src/Domain/Repository/Episode/EpisodeRepositoryInterface.php +++ b/app/src/Domain/Repository/Episode/EpisodeRepositoryInterface.php @@ -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; diff --git a/app/src/Domain/Repository/Image/ImageRepositoryInterface.php b/app/src/Domain/Repository/Image/ImageRepositoryInterface.php index 1eed9c0..cce9b6f 100644 --- a/app/src/Domain/Repository/Image/ImageRepositoryInterface.php +++ b/app/src/Domain/Repository/Image/ImageRepositoryInterface.php @@ -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; diff --git a/app/src/Domain/Repository/User/UserRepositoryInterface.php b/app/src/Domain/Repository/User/UserRepositoryInterface.php index aba48cc..83208f2 100644 --- a/app/src/Domain/Repository/User/UserRepositoryInterface.php +++ b/app/src/Domain/Repository/User/UserRepositoryInterface.php @@ -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; diff --git a/app/src/Domain/RepositoryInterface.php b/app/src/Domain/RepositoryInterface.php deleted file mode 100644 index 68d3607..0000000 --- a/app/src/Domain/RepositoryInterface.php +++ /dev/null @@ -1,16 +0,0 @@ -