Completed
Pull Request — master (#11)
by Giso
01:22
created

RequestEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 61.11%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 52
ccs 11
cts 18
cp 0.6111
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 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 6
    public function __construct(string $id, string $resource, $request)
27
    {
28 6
        $this->id       = $id;
29 6
        $this->resource = $resource;
30 6
        $this->request  = $request;
31 6
    }
32
33
    /**
34
     * @return mixed
35
     */
36 6
    public function getId()
37
    {
38 6
        return $this->id;
39
    }
40
41
    /**
42
     * @return string
43
     */
44 6
    public function getResource(): string
45
    {
46 6
        return $this->resource;
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52 6
    public function getRequest()
53
    {
54 6
        return $this->request;
55
    }
56
}
57