Limpieza de input de valor y filtro de datos a nivel Repo

This commit is contained in:
Juan Pablo Vial
2024-07-03 15:13:13 -04:00
parent d5b9be0196
commit d68eba5697
28 changed files with 436 additions and 189 deletions

View File

@ -161,4 +161,9 @@ abstract class Repository implements Define\Repository
}
return $results;
}
public function filterData(array $data): array
{
return $data;
}
}

View File

@ -6,7 +6,7 @@ use Throwable;
class EmptyResult extends Exception
{
public function __construct(string $query, ?Throwable $previous = null)
public function __construct(public string $query, ?Throwable $previous = null)
{
$message = "Empty results for {$query}";
$code = 700;