Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ArmaReforger | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 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 | |
| 13 | namespace Clansuite\ServerQuery\ServerProtocols; |
| 14 | |
| 15 | /** |
| 16 | * ARMA: Reforger protocol implementation. |
| 17 | * |
| 18 | * Based on Source engine protocol with ARMA Reforger specific rules parsing. |
| 19 | * |
| 20 | * @see https://community.bistudio.com/wiki/Arma_Reforger:Server_Config |
| 21 | */ |
| 22 | class ArmaReforger extends Steam |
| 23 | { |
| 24 | /** |
| 25 | * Protocol name. |
| 26 | */ |
| 27 | public string $name = 'ARMA: Reforger'; |
| 28 | |
| 29 | /** |
| 30 | * List of supported games. |
| 31 | * |
| 32 | * @var array<string> |
| 33 | */ |
| 34 | public array $supportedGames = ['ARMA: Reforger']; |
| 35 | |
| 36 | /** |
| 37 | * Protocol identifier. |
| 38 | */ |
| 39 | public string $protocol = 'A2S'; |
| 40 | |
| 41 | /** |
| 42 | * ARMA: Reforger uses query port = game port + 1. |
| 43 | */ |
| 44 | protected int $port_diff = 1; |
| 45 | |
| 46 | /** |
| 47 | * @inheritDoc |
| 48 | */ |
| 49 | public function __construct(?string $address = null, ?int $queryport = null) |
| 50 | { |
| 51 | parent::__construct($address, $queryport); |
| 52 | } |
| 53 | } |