Completed
Push — master ( 651e9a...253437 )
by Ivo
03:04
created

FaultEvent::getException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Freshcells\SoapClientBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class FaultEvent extends Event
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $id;
13
    /**
14
     * @var \Exception
15
     */
16
    protected $exception;
17
18
    /**
19
     * @var RequestEvent
20
     */
21
    protected $requestEvent;
22
23
    /**
24
     * FaultEvent constructor.
25
     * @param string $id
26
     * @param \Exception $exception
27
     * @param RequestEvent $requestEvent
28
     */
29 3
    public function __construct(string $id, \Exception $exception, RequestEvent $requestEvent)
30
    {
31 3
        $this->id           = $id;
32 3
        $this->exception    = $exception;
33 3
        $this->requestEvent = $requestEvent;
34 3
    }
35
36
    /**
37
     * @return string
38
     */
39 3
    public function getId(): string
40
    {
41 3
        return $this->id;
42
    }
43
44
    /**
45
     * @return \Exception
46
     */
47 3
    public function getException(): \Exception
48
    {
49 3
        return $this->exception;
50
    }
51
52
    /**
53
     * @return RequestEvent
54
     */
55 3
    public function getRequestEvent(): RequestEvent
56
    {
57 3
        return $this->requestEvent;
58
    }
59
}
60