RequestEvent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

4 Methods

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