ConsumeExceptionEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getException() 0 4 1
1
<?php
2
3
namespace TreeHouse\Queue\Event;
4
5
use TreeHouse\Queue\Amqp\EnvelopeInterface;
6
7
class ConsumeExceptionEvent extends ConsumeEvent
8
{
9
    /**
10
     * @var \Exception
11
     */
12
    private $exception;
13
14
    /**
15
     * @param EnvelopeInterface $envelope
16
     * @param \Exception        $exception
17
     */
18 2
    public function __construct(EnvelopeInterface $envelope, \Exception $exception)
19
    {
20 2
        parent::__construct($envelope);
21
22 2
        $this->exception = $exception;
23 2
    }
24
25
    /**
26
     * @return \Exception
27
     */
28 1
    public function getException()
29
    {
30 1
        return $this->exception;
31
    }
32
}
33