Completed
Push — master ( 4803b3...959101 )
by Frank
03:46
created

SynchronousEventStub   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 27
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A aggregateRootId() 0 4 1
A eventVersion() 0 4 1
A timeOfRecording() 0 4 1
A toPayload() 0 4 1
A fromPayload() 0 4 1
1
<?php
2
3
namespace EventSauce\EventSourcing\Integration\SynchronousDispatching;
4
5
use EventSauce\EventSourcing\AggregateRootId;
6
use EventSauce\EventSourcing\Event;
7
use EventSauce\EventSourcing\PointInTime;
8
9
/**
10
 * @codeCoverageIgnore
11
 */
12
class SynchronousEventStub implements Event
13
{
14
    public function aggregateRootId(): AggregateRootId
15
    {
16
17
    }
18
19
    public function eventVersion(): int
20
    {
21
22
    }
23
24
    public function timeOfRecording(): PointInTime
25
    {
26
27
    }
28
29
    public function toPayload(): array
30
    {
31
32
    }
33
34
    public static function fromPayload(array $payload, AggregateRootId $aggregateRootId, PointInTime $timeOfRecording): Event
35
    {
36
37
    }
38
}