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\Capture;
14:
15: /**
16: * Represents a game server address consisting of IP and port.
17: */
18: final readonly class ServerAddress
19: {
20: /**
21: * Initializes the server address with the specified IP and port.
22: *
23: * @param string $ip The server's IP address
24: * @param int $port The server's port number
25: */
26: public function __construct(
27: public string $ip,
28: public int $port
29: ) {
30: }
31: }
32: