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

EventHandlerFailedHandlingEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 8
c 1
b 0
f 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
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