Completed
Push — master ( 0c1255...399763 )
by Denis
01:54
created

Invoke::getRawMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace PhpJsonRpc\Core\Invoke;
4
5
class Invoke extends AbstractInvoke
6
{
7
    /**
8
     * @var mixed
9
     */
10
    private $rawId;
11
12
    /**
13
     * @var string
14
     */
15
    private $rawMethod;
16
17
    /**
18
     * @var array
19
     */
20
    private $rawParams;
21
22
    /**
23
     * CallUnit constructor.
24
     *
25
     * @param mixed  $rawId
26
     * @param string $rawMethod
27
     * @param array  $rawParams
28
     */
29
    public function __construct($rawId, $rawMethod, array $rawParams)
30
    {
31
        $this->rawId     = $rawId;
32
        $this->rawMethod = $rawMethod;
33
        $this->rawParams = $rawParams;
34
    }
35
36
    /**
37
     * @return mixed
38
     */
39
    public function getRawId()
40
    {
41
        return $this->rawId;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getRawMethod(): string
48
    {
49
        return $this->rawMethod;
50
    }
51
52
    /**
53
     * @return array
54
     */
55
    public function getRawParams(): array
56
    {
57
        return $this->rawParams;
58
    }
59
}
60