CommandHandlerMap::map()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace BSP\CommandBus\Contracts;
4
5
/**
6
 * CommandHandlerMap is a map of Command and Handlers.
7
 */
8
interface CommandHandlerMap
9
{
10
    /**
11
     * Map Command classes with corresponding handlers.
12
     *
13
     * Example:
14
     *     ['RegisterUser' => $registerUserHandler]
15
     *
16
     * @return iterable<string, callable>
0 ignored issues
show
Documentation introduced by
The doc-type iterable<string, could not be parsed: Expected "|" or "end of type", but got "<" at position 8. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
17
     */
18
    public function map(): array;
19
}
20