EventProcessingHasStalled   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 19
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getEventWithMetadata() 0 4 1
1
<?php
2
/**
3
 * Copyright (c) 2017 Constantin Galbenu <[email protected]>
4
 */
5
6
namespace Gica\Cqrs\Saga\SagaRunner;
7
8
9
use Gica\Cqrs\Event\EventWithMetaData;
10
11
class EventProcessingHasStalled extends \Exception
12
{
13
14
    /**
15
     * @var EventWithMetaData
16
     */
17
    private $eventWithMetadata;
18
19 2
    public function __construct(EventWithMetaData $eventWithMetadata)
20
    {
21 2
        parent::__construct("EventProcessingHasStalled," . print_r($eventWithMetadata,1));
22 2
        $this->eventWithMetadata = $eventWithMetadata;
23 2
    }
24
25 1
    public function getEventWithMetadata(): EventWithMetaData
26
    {
27 1
        return $this->eventWithMetadata;
28
    }
29
}