1 | <?php |
||
8 | class Rpc implements \JsonSerializable, ActionableMessageInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $target; |
||
14 | |||
15 | /** |
||
16 | * @var Payload |
||
17 | */ |
||
18 | protected $payload; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $uniqid; |
||
24 | |||
25 | /** |
||
26 | * @param string $target |
||
27 | * @param Payload $payload |
||
28 | * @param string $uniqid |
||
29 | */ |
||
30 | 11 | public function __construct($target, Payload $payload, $uniqid = '') |
|
36 | |||
37 | /** |
||
38 | * @return Payload |
||
39 | */ |
||
40 | 3 | public function getPayload() |
|
44 | |||
45 | /** |
||
46 | * @param $uniqid |
||
47 | * @return static |
||
48 | */ |
||
49 | 3 | public function setUniqid($uniqid) |
|
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | 9 | public function jsonSerialize() |
|
66 | |||
67 | /** |
||
68 | * @param $bindTo |
||
69 | * @param $source |
||
70 | */ |
||
71 | 4 | public function handle($bindTo, $source) |
|
98 | } |
||
99 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.