File tree 4 files changed +12
-4
lines changed
src/Contracts/Application
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace GeekCell \Ddd \Contracts \Application ;
6
6
7
+ /**
8
+ * @template T of mixed
9
+ */
7
10
interface Command
8
11
{
9
12
}
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ interface CommandBus
9
9
/**
10
10
* Dispatch a command to the appropriate handler.
11
11
*
12
- * @param Command $command
13
- * @return mixed
12
+ * @template T of mixed
13
+ * @param Command<T> $command
14
+ * @return T
14
15
*/
15
16
public function dispatch (Command $ command ): mixed ;
16
17
}
Original file line number Diff line number Diff line change 4
4
5
5
namespace GeekCell \Ddd \Contracts \Application ;
6
6
7
+ /**
8
+ * @template T of mixed
9
+ */
7
10
interface Query
8
11
{
9
12
}
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ interface QueryBus
9
9
/**
10
10
* Dispatch a query to the appropriate handler.
11
11
*
12
- * @param Query $query
13
- * @return mixed
12
+ * @template T of mixed
13
+ * @param Query<T> $query
14
+ * @return T
14
15
*/
15
16
public function dispatch (Query $ query ): mixed ;
16
17
}
You can’t perform that action at this time.
0 commit comments