Completed
Push — master ( 1a01ba...b462f9 )
by Freek
03:37 queued 01:58
created

EventHandlerFailedHandlingEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 20
c 1
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Spatie\EventProjector\Events;
4
5
use Exception;
6
use Spatie\EventProjector\EventHandlers\EventHandler;
7
use Spatie\EventProjector\Models\StoredEvent;
8
9
class EventHandlerFailedHandlingEvent
10
{
11
    /** @var \Spatie\EventProjector\EventHandlers\EventHandler */
12
    public $eventHandler;
13
14
    /** @var \Spatie\EventProjector\Models\StoredEvent */
15
    public $storedEvent;
16
17
    /** @var \Exception */
18
    public $exception;
19
20
    public function __construct(EventHandler $eventHandler, StoredEvent $storedEvent, Exception $exception)
21
    {
22
        $this->eventHandler = $eventHandler;
23
24
        $this->storedEvent = $storedEvent;
25
26
        $this->exception = $exception;
27
    }
28
}
29