Passed
Pull Request — master (#84)
by Frank
09:22
created

DummyEventHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handleEventStub() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace EventSauce\EventSourcing\LibraryConsumptionTests\EventHandling;
6
7
use EventSauce\EventSourcing\EventHandlingMessageConsumer;
8
use EventSauce\EventSourcing\EventStub;
9
use EventSauce\EventSourcing\Message;
10
11
/**
12
 * @testAsset
13
 */
14
class DummyEventHandler extends EventHandlingMessageConsumer
15
{
16
    public EventStub $event;
17
    public Message $message;
18
19
    protected function handleEventStub(EventStub $event, Message $message): void
20
    {
21
        $this->event = $event;
22
        $this->message = $message;
23
    }
24
}
25