Completed
Push — master ( 5acb47...9425df )
by Ivo
02:12 queued 14s
created

RequestEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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