Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| CaptureResult | |
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\Capture; |
| 14 | |
| 15 | /** |
| 16 | * Represents the result of a server capture operation, containing raw packets and parsed server information. |
| 17 | */ |
| 18 | final class CaptureResult |
| 19 | { |
| 20 | /** |
| 21 | * Constructor. |
| 22 | * |
| 23 | * @param array<mixed> $rawPackets |
| 24 | * @param array<mixed> $metadata |
| 25 | */ |
| 26 | public function __construct( |
| 27 | public array $rawPackets, |
| 28 | public ServerInfo $serverInfo, |
| 29 | public array $metadata |
| 30 | ) { |
| 31 | } |
| 32 | } |