Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Shared\Infrastructure\EventHandler; |
| 4 | |
| 5 | |
| 6 | use MyLegoCollection\SharedContracts\Message; |
| 7 | |
| 8 | /** |
| 9 | * @template T of Message |
| 10 | * Base interface that must be extended by more specific event/command handlers interfaces in infrastructures |
| 11 | * This will allow writing tests that check a specific mandatory handler exists in a slice/module, |
| 12 | * which can also be seen as self documentation / integrity check |
| 13 | * |
| 14 | * @author Wilhelm Zwertvaegher |
| 15 | */ |
| 16 | interface MessageHandler |
| 17 | { |
| 18 | /** |
| 19 | * @return class-string<T> the class handled |
| 20 | */ |
| 21 | public static function getMessageHandled(): string; |
| 22 | |
| 23 | |
| 24 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 3 | namespace App\Shared\Infrastructure\EventHandler; |
| 4 | |
| 5 | |
| 6 | use MyLegoCollection\SharedContracts\Message; |
| 7 | |
| 8 | /** |
| 9 | * @template T of Message |
| 10 | * Base interface that must be extended by more specific event/command handlers interfaces in infrastructures |
| 11 | * This will allow writing tests that check a specific mandatory handler exists in a slice/module, |
| 12 | * which can also be seen as self documentation / integrity check |
| 13 | * |
| 14 | * @author Wilhelm Zwertvaegher |
| 15 | */ |
| 16 | interface MessageHandler |
| 17 | { |
| 18 | /** |
| 19 | * @return class-string<T> the class handled |
| 20 | */ |
| 21 | public static function getMessageHandled(): string; |
| 22 | |
| 23 |