frontend and backend

This commit is contained in:
2022-01-09 12:08:42 +01:00
parent cbff7c5d22
commit dde65761e5
75 changed files with 37830 additions and 19 deletions

View File

@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Entity;
use Exception;
/**
* Data returned to web interface. Will be converted to JSON most likely.
*/
class PregResponse
{
public function __construct(
public readonly mixed $dump,
public readonly string $code,
public readonly ?string $returnType,
public readonly ?string $returnValue,
) {
if (preg_last_error() !== PREG_NO_ERROR) {
throw new Exception('preg_last_error() = '. preg_last_error_msg());
}
}
}