Passed
Pull Request — master (#84)
by Frank
02:06
created

DummyEventHandler::handlePayloadStub()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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\Message;
9
use EventSauce\EventSourcing\PayloadStub;
10
11
class DummyEventHandler extends EventHandlingMessageConsumer
12
{
13
    /**
14
     * @var PayloadStub
15
     */
16
    public $event;
17
18
    /**
19
     * @var Message
20
     */
21
    public $message;
22
23 1
    protected function handlePayloadStub(PayloadStub $event, Message $message): void
24
    {
25 1
        $this->event = $event;
26 1
        $this->message = $message;
27 1
    }
28
}
29