Add limited backoffice functionality with employee management and department pricing

This commit is contained in:
Jeppe Bundgaard
2026-07-01 16:37:32 +02:00
parent 4252f9a42b
commit 1d1ebd2176
8 changed files with 1862 additions and 1 deletions
@@ -0,0 +1,24 @@
<?php
namespace classes;
class limited_backoffice_exception extends \RuntimeException
{
public function __construct(
string $message,
private readonly int $statusCode = 400,
private readonly ?array $payload = null
) {
parent::__construct($message);
}
public function statusCode(): int
{
return $this->statusCode;
}
public function payload(): array|string
{
return $this->payload ?? $this->getMessage();
}
}