Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | final class Pong implements Event |
||
10 | { |
||
11 | |||
12 | /** @var array */ |
||
13 | protected $data; |
||
14 | |||
15 | /** @var int */ |
||
16 | protected $replyTo; |
||
17 | |||
18 | /** |
||
19 | * @return array |
||
20 | */ |
||
21 | public function getData(): array |
||
22 | { |
||
23 | return $this->data; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param array $data |
||
28 | * @return Pong |
||
29 | */ |
||
30 | public function setData(array $data): Pong |
||
31 | { |
||
32 | $this->data = $data; |
||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return int |
||
38 | */ |
||
39 | public function getReplyTo(): int |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param int $replyTo |
||
46 | * @return Pong |
||
47 | */ |
||
48 | public function setReplyTo(int $replyTo): Pong |
||
54 | } |