RequestEvent::getResource()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

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
nc 1
nop 0
crap 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