1 | <?php declare(strict_types=1); |
||
8 | final class SetPower implements Message |
||
9 | { |
||
10 | public const MESSAGE_TYPE_ID = 21; |
||
11 | public const WIRE_SIZE = 2; |
||
12 | |||
13 | private $level; |
||
14 | |||
15 | /** |
||
16 | * @param int $level |
||
17 | * @throws InvalidValueException |
||
18 | */ |
||
19 | 5 | public function __construct(int $level) |
|
27 | |||
28 | 1 | public function getLevel(): int |
|
32 | |||
33 | 1 | public function getTypeId(): int |
|
37 | |||
38 | 1 | public function getWireSize(): int |
|
42 | } |
||
43 |