FailProcessedEvent::getMaxRetryCount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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