From 0717cb8ca599f6718b8b4759fcbeee049967bd36 Mon Sep 17 00:00:00 2001 From: Unay Santisteban Date: Wed, 27 Jan 2021 20:03:43 +0100 Subject: [PATCH] Feature/QueryBus ask methods now has Response as return type. --- src/Domain/Contracts/Bus/QueryBus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Domain/Contracts/Bus/QueryBus.php b/src/Domain/Contracts/Bus/QueryBus.php index e22c770..b69b32b 100644 --- a/src/Domain/Contracts/Bus/QueryBus.php +++ b/src/Domain/Contracts/Bus/QueryBus.php @@ -5,6 +5,7 @@ namespace OtherCode\ComplexHeart\Domain\Contracts\Bus; use OtherCode\ComplexHeart\Domain\Bus\Query; +use OtherCode\ComplexHeart\Domain\Bus\Response; /** * Interface QueryBus @@ -21,5 +22,5 @@ interface QueryBus * * @return mixed */ - public function ask(Query $query); + public function ask(Query $query): Response; }