Completed
Push — master ( 401b14...f6ee11 )
by Ivo
10:45 queued 10s
created

FaultEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 53
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getId() 0 4 1
A getException() 0 4 1
A getRequestEvent() 0 4 1
1
<?php
2
3
namespace Freshcells\SoapClientBundle\Event;
4
5
class FaultEvent extends Event
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $id;
11
    /**
12
     * @var \Exception
13
     */
14
    protected $exception;
15
16
    /**
17
     * @var RequestEvent
18
     */
19
    protected $requestEvent;
20
21
    /**
22
     * FaultEvent constructor.
23
     * @param string $id
24
     * @param \Exception $exception
25
     * @param RequestEvent $requestEvent
26
     */
27
    public function __construct(string $id, \Exception $exception, RequestEvent $requestEvent)
28
    {
29
        $this->id           = $id;
30
        $this->exception    = $exception;
31
        $this->requestEvent = $requestEvent;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getId(): string
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @return \Exception
44
     */
45
    public function getException(): \Exception
46
    {
47
        return $this->exception;
48
    }
49
50
    /**
51
     * @return RequestEvent
52
     */
53
    public function getRequestEvent(): RequestEvent
54
    {
55
        return $this->requestEvent;
56
    }
57
}
58