Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
LogoutCommand
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 pack
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace AqwSocketClient\Commands;
6
7use AqwSocketClient\Interfaces\CommandInterface;
8use AqwSocketClient\Packet;
9use 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 */
16final class LogoutCommand implements CommandInterface
17{
18    #[Override]
19    public function pack(): Packet
20    {
21        return Packet::packetify('%xt%zm%cmd%1%logout%');
22    }
23}