Notification   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRawMethod() 0 4 1
A getRawParams() 0 4 1
1
<?php
2
3
namespace PhpJsonRpc\Core\Invoke;
4
5
class Notification extends AbstractInvoke
6
{
7
    /**
8
     * @var string
9
     */
10
    private $rawMethod;
11
12
    /**
13
     * @var array
14
     */
15
    private $rawParams;
16
17
    /**
18
     * NotificationUnit constructor.
19
     *
20
     * @param string $method
21
     * @param array  $params
22
     */
23
    public function __construct($method, array $params)
24
    {
25
        $this->rawMethod = $method;
26
        $this->rawParams = $params;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getRawMethod(): string
33
    {
34
        return $this->rawMethod;
35
    }
36
37
    /**
38
     * @return array
39
     */
40
    public function getRawParams(): array
41
    {
42
        return $this->rawParams;
43
    }
44
}
45