| Total Complexity | 3 | 
| Total Lines | 28 | 
| Duplicated Lines | 0 % | 
| 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 | public function __construct( | ||
| 22 | MessageType $messageType, | ||
| 23 | \Protobuf\Message $protobuf | ||
| 24 |     ) { | ||
| 25 | $this->type = $messageType; | ||
| 26 | $this->proto = $protobuf; | ||
| 27 | } | ||
| 28 | |||
| 29 | public function getType(): int | ||
| 32 | } | ||
| 33 | |||
| 34 | public function getProto(): \Protobuf\Message | ||
| 39 |