| 1 | <?php |
||
| 8 | class Header extends Frame |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $classId; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | private $weight; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | private $size; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | private $properties = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int $channel |
||
| 32 | * @param int $classId |
||
| 33 | * @param int $weight |
||
| 34 | * @param int $size |
||
| 35 | * @param array $properties |
||
| 36 | */ |
||
| 37 | public function __construct($channel, $classId, $weight, $size, array $properties = []) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | public function getClassId() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | public function getWeight() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return int |
||
| 65 | */ |
||
| 66 | public function getSize() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return array |
||
| 73 | */ |
||
| 74 | public function getProperties() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function encode() |
||
| 89 | } |
||
| 90 |