Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | abstract class MessageBase |
||
10 | { |
||
11 | /** |
||
12 | * @var MessageType |
||
13 | */ |
||
14 | private $type; |
||
15 | |||
16 | /** |
||
17 | * @var \Protobuf\Message |
||
18 | */ |
||
19 | private $proto; |
||
20 | |||
21 | 43 | public function __construct( |
|
22 | MessageType $messageType, |
||
23 | \Protobuf\Message $protobuf |
||
24 | ) { |
||
25 | 43 | $this->type = $messageType; |
|
26 | 43 | $this->proto = $protobuf; |
|
27 | 43 | } |
|
28 | |||
29 | 42 | public function getType(): int |
|
32 | } |
||
33 | |||
34 | 42 | public function getProto(): \Protobuf\Message |
|
39 |