Import alt-mysql plugin

This commit is contained in:
Marek Miklewicz
2026-07-04 15:48:19 +02:00
commit d71fcf9ace
101 changed files with 18635 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
final class LocalizedException extends RuntimeException
{
/** @var array<string,string|int|float> */
private array $vars;
/**
* @param array<string,string|int|float> $vars
*/
public function __construct(string $key, array $vars = [], int $code = 0, ?Throwable $previous = null)
{
parent::__construct($key, $code, $previous);
$this->vars = $vars;
}
public function key(): string
{
return $this->getMessage();
}
/**
* @return array<string,string|int|float>
*/
public function vars(): array
{
return $this->vars;
}
}