PocketMine-MP
5.21.1 git-2ff647079265e7c600203af4fd902b15e99d49a4
SplitPacketInfo.php
1
<?php
2
3
/*
4
* This file is part of RakLib.
5
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/RakLib>
6
*
7
* RakLib is not affiliated with Jenkins Software LLC nor RakNet.
8
*
9
* RakLib is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*/
14
15
declare(strict_types=1);
16
17
namespace
raklib\protocol;
18
19
final
class
SplitPacketInfo
{
20
public
function
__construct(
21
private
int
$id,
22
private
int
$partIndex,
23
private
int
$totalPartCount
24
){
25
//TODO: argument validation
26
}
27
28
public
function
getId() :
int
{
29
return
$this->id;
30
}
31
32
public
function
getPartIndex() :
int
{
33
return
$this->partIndex;
34
}
35
36
public
function
getTotalPartCount() :
int
{
37
return
$this->totalPartCount;
38
}
39
}
raklib\protocol\SplitPacketInfo
Definition:
SplitPacketInfo.php:19
vendor
pocketmine
raklib
src
protocol
SplitPacketInfo.php
Generated by
1.9.3