Add TuxiNet branding and document templates

This commit is contained in:
Thomas
2025-10-28 13:56:54 +01:00
parent f956a735ca
commit 3755435890
48 changed files with 1762 additions and 1 deletions

39
app/Core/Response.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
namespace App\Core;
class Response
{
private string $body;
private int $status;
/** @var array<string, string> */
private array $headers;
/**
* @param array<string, string> $headers
*/
public function __construct(string $body = '', int $status = 200, array $headers = [])
{
$this->body = $body;
$this->status = $status;
$this->headers = $headers;
}
public function getBody(): string
{
return $this->body;
}
public function getStatus(): int
{
return $this->status;
}
/**
* @return array<string, string>
*/
public function getHeaders(): array
{
return $this->headers;
}
}