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

ProjectorFailedHandlingEvent   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 1
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 1
b 0
f 1

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\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