Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| PacketType | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package phpOMS\Message\Socket |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | namespace phpOMS\Message\Socket; |
| 16 | |
| 17 | use phpOMS\Stdlib\Base\Enum; |
| 18 | |
| 19 | /** |
| 20 | * Packet type enum. |
| 21 | * |
| 22 | * @package phpOMS\Message\Socket |
| 23 | * @license OMS License 2.0 |
| 24 | * @link https://jingga.app |
| 25 | * @since 1.0.0 |
| 26 | */ |
| 27 | abstract class PacketType extends Enum |
| 28 | { |
| 29 | public const CONNECT = 0; /* Client connection (server/sender) */ |
| 30 | |
| 31 | public const DISCONNECT = 1; /* Client disconnection (server/sender) */ |
| 32 | |
| 33 | public const KICK = 2; /* Kick (server/client/sender) */ |
| 34 | |
| 35 | public const PING = 3; /* Ping (server/sender) */ |
| 36 | |
| 37 | public const HELP = 4; /* Help (server/sender) */ |
| 38 | |
| 39 | public const RESTART = 5; /* Restart server (server/all clients/client) */ |
| 40 | |
| 41 | public const MSG = 6; /* Message (server/sender/client/all clients?) */ |
| 42 | |
| 43 | public const LOGIN = 7; /* Login (server/sender) */ |
| 44 | |
| 45 | public const LOGOUT = 8; /* Logout (server/sender) */ |
| 46 | |
| 47 | public const CMD = 9; /* Other command */ |
| 48 | |
| 49 | public const DOWNLOAD = 10; /* Download */ |
| 50 | } |