30 lines
695 B
PHP
30 lines
695 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BattleForge\Http;
|
|
|
|
final readonly class Request
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $get
|
|
* @param array<string, mixed> $post
|
|
* @param array<string, array<string, mixed>> $files
|
|
* @param array<string, string> $cookies
|
|
* @param array<string, string> $server
|
|
*/
|
|
public function __construct(
|
|
public array $get,
|
|
public array $post,
|
|
public array $files,
|
|
public array $cookies,
|
|
public array $server,
|
|
public string $queryString,
|
|
public string $method,
|
|
public string $path,
|
|
public ?string $contentType,
|
|
public string $rawBody,
|
|
) {
|
|
}
|
|
}
|