20250818 v1.0.2-b1

This commit is contained in:
2025-08-18 17:58:38 +03:00
parent 6940e9107d
commit 670d226309
4 changed files with 893 additions and 42 deletions

View File

@@ -39,10 +39,10 @@
* @param string|array|null $toType Метод конвертации в тип для заполнения таблицы базы данных (может быть
* строкой (имя функции), может быть массивом (имя класса, имя метода) и null (по умолчанию)).
*/
public function __construct (string|array|null $fromType = null, string|array|null $toType = null)
public function __construct (string | array | null $fromType = null, string | array | null $toType = null)
{
$this->ConvertToDB = $fromType;
$this->ConvertFromDB = $toType;
$this->ConvertToDB = $this->CreateCallback($fromType);
$this->ConvertFromDB = $this->CreateCallback($toType);
}
/**
@@ -52,7 +52,7 @@
*
* @return Closure|null
*/
private function CreateCallback (string|array|null $callbackData): ?Closure
private function CreateCallback (string | array | null $callbackData): ?Closure
{
// Если передан null
if ($callbackData === null)