Completed
Push — master ( 00f04e...1d93d6 )
by Freek
03:46
created

EventHandlerFailedHandlingEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Spatie\EventSourcing\Events;
4
5
use Exception;
6
use Spatie\EventSourcing\EventHandlers\EventHandler;
7
use Spatie\EventSourcing\StoredEvent;
8
9
final class EventHandlerFailedHandlingEvent
10
{
11
    public EventHandler $eventHandler;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
12
13
    public StoredEvent $storedEvent;
14
15
    public Exception $exception;
16
17
    public function __construct(EventHandler $eventHandler, StoredEvent $storedEvent, Exception $exception)
18
    {
19
        $this->eventHandler = $eventHandler;
20
21
        $this->storedEvent = $storedEvent;
22
23
        $this->exception = $exception;
24
    }
25
}
26