1 | <?php |
||
5 | class Rpc implements \JsonSerializable, ActionableMessageInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $target; |
||
11 | |||
12 | /** |
||
13 | * @var Payload |
||
14 | */ |
||
15 | protected $payload; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $uniqid; |
||
21 | |||
22 | /** |
||
23 | * @param string $target |
||
24 | * @param Payload $payload |
||
25 | * @param string $uniqid |
||
26 | */ |
||
27 | 10 | public function __construct($target, Payload $payload, $uniqid = '') |
|
33 | |||
34 | /** |
||
35 | * @return Payload |
||
36 | */ |
||
37 | 3 | public function getPayload() |
|
41 | |||
42 | /** |
||
43 | * @param $uniqid |
||
44 | * @return static |
||
45 | */ |
||
46 | 3 | public function setUniqid($uniqid) |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 9 | public function jsonSerialize() |
|
63 | |||
64 | /** |
||
65 | * @param $bindTo |
||
66 | * @param $source |
||
67 | */ |
||
68 | 3 | public function handle($bindTo, $source) |
|
92 | } |
||
93 |
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.