This commit is contained in:
icefox 2026-02-18 20:18:39 -03:00
parent bef42b3352
commit afb47c1977
No known key found for this signature in database
7 changed files with 56 additions and 26 deletions

18
src/Config.php Normal file
View file

@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace Icefox\DTO;
class Config
{
public static function getCaster(string $className): ?callable
{
return config('dto.cast.' . $className, null);
}
public static function getRules(string $className): ?callable
{
return config('dto.rules.' . $className, null);
}
}