Invoke   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 55
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getRawId() 0 4 1
A getRawMethod() 0 4 1
A getRawParams() 0 4 1
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