Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
Halo
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getProtocolName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
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;
16use Override;
17
18/**
19 * Halo protocol implementation.
20 *
21 * Extends GameSpy2 protocol.
22 */
23class Halo extends Gamespy2 implements ProtocolInterface
24{
25    /**
26     * Protocol name.
27     */
28    public string $name = 'Halo';
29
30    /**
31     * List of supported games.
32     *
33     * @var array<string>
34     */
35    public array $supportedGames = ['Halo'];
36
37    /**
38     * Protocol identifier.
39     */
40    public string $protocol = 'halo';
41
42    /**
43     * Constructor.
44     */
45    public function __construct(mixed $address = null, mixed $queryport = null)
46    {
47        parent::__construct($address, $queryport);
48    }
49
50    /**
51     * getProtocolName method.
52     */
53    #[Override]
54    public function getProtocolName(): string
55    {
56        return $this->protocol;
57    }
58}