Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| LogoutCommand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| pack | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AqwSocketClient\Commands; |
| 6 | |
| 7 | use AqwSocketClient\Interfaces\CommandInterface; |
| 8 | use AqwSocketClient\Packet; |
| 9 | use Override; |
| 10 | |
| 11 | /** |
| 12 | * Represents a command to gracefully log out the current player from the AQW server. |
| 13 | * |
| 14 | * This command is sent to terminate the player's active session. |
| 15 | */ |
| 16 | final class LogoutCommand implements CommandInterface |
| 17 | { |
| 18 | #[Override] |
| 19 | public function pack(): Packet |
| 20 | { |
| 21 | return Packet::packetify('%xt%zm%cmd%1%logout%'); |
| 22 | } |
| 23 | } |