Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Squad
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php declare(strict_types=1);
2
3/**
4 * Clansuite Server Query
5 *
6 * SPDX-FileCopyrightText: 2003-2025 Jens A. Koch
7 * SPDX-License-Identifier: MIT
8 *
9 * For the full copyright and license information, please view
10 * the LICENSE file that was distributed with this source code.
11 */
12
13namespace Clansuite\ServerQuery\ServerProtocols;
14
15use Clansuite\Capture\Protocol\ProtocolInterface;
16
17/**
18 * SQUAD protocol implementation.
19 *
20 * SQUAD uses the Steam A2S query protocol with a specific port offset.
21 * Query port = client port + 19378
22 */
23class Squad extends Steam implements ProtocolInterface
24{
25    /**
26     * Protocol name.
27     */
28    public string $name = 'SQUAD';
29
30    /**
31     * List of supported games.
32     *
33     * @var array<string>
34     */
35    public array $supportedGames = ['SQUAD'];
36
37    /**
38     * Protocol identifier.
39     */
40    public string $protocol = 'A2S';
41
42    /**
43     * Game series.
44     *
45     * @var array<string>
46     */
47    public array $game_series_list = ['SQUAD'];
48
49    /**
50     * Port adjustment: query_port = client_port + 19378.
51     */
52    protected int $port_diff = 19378;
53}