Skeleton is ready

This commit is contained in:
2026-01-05 16:33:20 +04:00
commit eeaf43ab5d
89 changed files with 2704 additions and 0 deletions

12
app/Kernel/Db/Ilike.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace App\Kernel\Db;
enum Ilike: string
{
case StartsWith = '%s%%%%';
case EndsWith = '%%%s';
case Contains = '%%%%%s%%%%';
}

16
app/Kernel/Db/Query.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace App\Kernel\Db;
class Query
{
public static function ilike(
int|float|string $value,
string $modifier = '%s',
Ilike $mode = Ilike::Contains
): string {
return sprintf(sprintf($mode->value, $modifier), $value);
}
}