From 7270fa2936745d79de766cb099b6e90aa7c40a0d Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Fri, 25 Apr 2025 15:23:04 -0500 Subject: [PATCH] chore: adds doc blocks to Search module --- src/Search/Action/Command/GetMediaInfoCommand.php | 2 +- src/Search/Action/Command/SearchCommand.php | 5 +---- src/Search/Action/Handler/GetMediaInfoHandler.php | 2 ++ src/Search/Action/Handler/SearchHandler.php | 2 +- src/Search/Action/Input/GetMediaInfoInput.php | 1 + src/Search/Action/Input/SearchInput.php | 4 +--- src/Search/Action/Result/GetMediaInfoResult.php | 2 +- src/Search/Action/Result/SearchResult.php | 1 + 8 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Search/Action/Command/GetMediaInfoCommand.php b/src/Search/Action/Command/GetMediaInfoCommand.php index eb9ee95..05490a5 100644 --- a/src/Search/Action/Command/GetMediaInfoCommand.php +++ b/src/Search/Action/Command/GetMediaInfoCommand.php @@ -4,9 +4,9 @@ namespace App\Search\Action\Command; use OneToMany\RichBundle\Contract\CommandInterface; +/** @implements CommandInterface */ class GetMediaInfoCommand implements CommandInterface { - /** @implements CommandInterface */ public function __construct( public string $tmdbId, public string $mediaType, diff --git a/src/Search/Action/Command/SearchCommand.php b/src/Search/Action/Command/SearchCommand.php index ae353da..3aac011 100644 --- a/src/Search/Action/Command/SearchCommand.php +++ b/src/Search/Action/Command/SearchCommand.php @@ -4,12 +4,9 @@ namespace App\Search\Action\Command; use OneToMany\RichBundle\Contract\CommandInterface; +/** @implements CommandInterface */ class SearchCommand implements CommandInterface { - /** - * @param string $term - * @implements CommandInterface - */ public function __construct( public string $term ) {} diff --git a/src/Search/Action/Handler/GetMediaInfoHandler.php b/src/Search/Action/Handler/GetMediaInfoHandler.php index 67f7198..7c36350 100644 --- a/src/Search/Action/Handler/GetMediaInfoHandler.php +++ b/src/Search/Action/Handler/GetMediaInfoHandler.php @@ -2,12 +2,14 @@ namespace App\Search\Action\Handler; +use App\Search\Action\Command\GetMediaInfoCommand; use App\Search\Action\Result\GetMediaInfoResult; use App\Tmdb\Tmdb; use OneToMany\RichBundle\Contract\CommandInterface; use OneToMany\RichBundle\Contract\HandlerInterface; use OneToMany\RichBundle\Contract\ResultInterface; +/** @implements HandlerInterface */ class GetMediaInfoHandler implements HandlerInterface { public function __construct( diff --git a/src/Search/Action/Handler/SearchHandler.php b/src/Search/Action/Handler/SearchHandler.php index 35e7576..2949923 100644 --- a/src/Search/Action/Handler/SearchHandler.php +++ b/src/Search/Action/Handler/SearchHandler.php @@ -8,13 +8,13 @@ use OneToMany\RichBundle\Contract\CommandInterface; use OneToMany\RichBundle\Contract\HandlerInterface; use OneToMany\RichBundle\Contract\ResultInterface; +/*** @implements HandlerInterface */ class SearchHandler implements HandlerInterface { public function __construct( private Tmdb $tmdb, ) {} - /*** @implements HandlerInterface */ public function handle(CommandInterface $command): ResultInterface { return new SearchResult( diff --git a/src/Search/Action/Input/GetMediaInfoInput.php b/src/Search/Action/Input/GetMediaInfoInput.php index f4b64c3..3f49a32 100644 --- a/src/Search/Action/Input/GetMediaInfoInput.php +++ b/src/Search/Action/Input/GetMediaInfoInput.php @@ -8,6 +8,7 @@ use OneToMany\RichBundle\Attribute\SourceRoute; use OneToMany\RichBundle\Contract\CommandInterface; use OneToMany\RichBundle\Contract\InputInterface; +/** @implements InputInterface */ class GetMediaInfoInput implements InputInterface { public function __construct( diff --git a/src/Search/Action/Input/SearchInput.php b/src/Search/Action/Input/SearchInput.php index 00f1ef5..9defb4c 100644 --- a/src/Search/Action/Input/SearchInput.php +++ b/src/Search/Action/Input/SearchInput.php @@ -8,9 +8,7 @@ use OneToMany\RichBundle\Attribute\SourceRequest; use OneToMany\RichBundle\Contract\CommandInterface; use OneToMany\RichBundle\Contract\InputInterface; -/** - * @implements InputInterface - */ +/** @implements InputInterface */ class SearchInput implements InputInterface { public function __construct( diff --git a/src/Search/Action/Result/GetMediaInfoResult.php b/src/Search/Action/Result/GetMediaInfoResult.php index 8d11885..8732049 100644 --- a/src/Search/Action/Result/GetMediaInfoResult.php +++ b/src/Search/Action/Result/GetMediaInfoResult.php @@ -5,9 +5,9 @@ namespace App\Search\Action\Result; use App\Tmdb\TmdbResult; use OneToMany\RichBundle\Contract\ResultInterface; +/** @implements ResultInterface */ class GetMediaInfoResult implements ResultInterface { - /** @implements ResultInterface */ public function __construct( public TmdbResult $media, ) {} diff --git a/src/Search/Action/Result/SearchResult.php b/src/Search/Action/Result/SearchResult.php index 2a3d294..12be602 100644 --- a/src/Search/Action/Result/SearchResult.php +++ b/src/Search/Action/Result/SearchResult.php @@ -4,6 +4,7 @@ namespace App\Search\Action\Result; use OneToMany\RichBundle\Contract\ResultInterface; +/** @implements ResultInterface */ class SearchResult implements ResultInterface { public function __construct(