Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| UserEventBus | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| dispatch | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\User\Infrastructure\Messenger; |
| 4 | |
| 5 | use App\Shared\Domain\Event\DomainEvent; |
| 6 | use App\Shared\Domain\Port\Driven\EventBus; |
| 7 | use Symfony\Component\Messenger\MessageBusInterface; |
| 8 | |
| 9 | /** |
| 10 | * Auth local event bus for local auth slice related DomainEvent |
| 11 | * @author Wilhelm Zwertvaegher |
| 12 | */ |
| 13 | class UserEventBus extends EventBus |
| 14 | { |
| 15 | public function __construct(private readonly MessageBusInterface $userBus) |
| 16 | { |
| 17 | } |
| 18 | |
| 19 | public function dispatch(DomainEvent $event): void |
| 20 | { |
| 21 | $this->userBus->dispatch($event); |
| 22 | } |
| 23 | } |
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.
| 15 | public function __construct(private readonly MessageBusInterface $userBus) |
| 16 | { |
| 17 | } |
| 19 | public function dispatch(DomainEvent $event): void |
| 20 | { |
| 21 | $this->userBus->dispatch($event); |
| 22 | } |
| 3 | namespace App\User\Infrastructure\Messenger; |
| 4 | |
| 5 | use App\Shared\Domain\Event\DomainEvent; |
| 6 | use App\Shared\Domain\Port\Driven\EventBus; |
| 7 | use Symfony\Component\Messenger\MessageBusInterface; |
| 8 | |
| 9 | /** |
| 10 | * Auth local event bus for local auth slice related DomainEvent |
| 11 | * @author Wilhelm Zwertvaegher |
| 12 | */ |
| 13 | class UserEventBus extends EventBus |
| 14 | { |
| 15 | public function __construct(private readonly MessageBusInterface $userBus) |
| 16 | { |
| 17 | } |
| 18 | |
| 19 | public function dispatch(DomainEvent $event): void |
| 20 | { |
| 21 | $this->userBus->dispatch($event); |
| 22 | } |