Completed
Push — master ( 50c098...015012 )
by Freek
04:38
created

ProjectorFailedHandlingEvent::__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 1
Metric Value
dl 0
loc 8
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
namespace Spatie\EventProjector\Events;
4
5
use Exception;
6
use Spatie\EventProjector\Models\StoredEvent;
7
use Spatie\EventProjector\Projectors\Projector;
8
9
class ProjectorFailedHandlingEvent
10
{
11
    /** @var \Spatie\EventProjector\Projectors\Projector */
12
    public $projector;
13
14
    /** @var \Spatie\EventProjector\Models\StoredEvent */
15
    public $storedEvent;
16
17
    /** @var \Exception */
18
    public $exception;
19
20
    public function __construct(Projector $projector, StoredEvent $storedEvent, Exception $exception)
21
    {
22
        $this->projector = $projector;
23
24
        $this->storedEvent = $storedEvent;
25
26
        $this->exception = $exception;
27
    }
28
}
29