FailProcessedEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 38
ccs 0
cts 13
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getEvent() 0 4 1
A getMaxRetryCount() 0 4 1
1
<?php
2
3
4
namespace Itkg\DelayEventBundle\Event;
5
6
use Itkg\DelayEventBundle\Model\Event;
7
use Symfony\Component\EventDispatcher\Event as BaseEvent;
8
9
10
/**
11
 * class FailProcessedEvent
12
 */
13
class FailProcessedEvent extends BaseEvent
14
{
15
    /**
16
     * @var Event
17
     */
18
    private $event;
19
20
    /**
21
     * @var int
22
     */
23
    private $maxRetryCount;
24
25
    /**
26
     * @param Event $event
27
     * @param int   $maxRetryCount
28
     */
29
    public function __construct(Event $event, $maxRetryCount = 0)
30
    {
31
        $this->event = $event;
32
        $this->maxRetryCount = $maxRetryCount;
33
    }
34
35
    /**
36
     * @return Event
37
     */
38
    public function getEvent()
39
    {
40
        return $this->event;
41
    }
42
43
    /**
44
     * @return int
45
     */
46
    public function getMaxRetryCount()
47
    {
48
        return $this->maxRetryCount;
49
    }
50
}
51