chore: complete update
This commit is contained in:
18
src/Framework/Validation/ValidationRule.php
Normal file
18
src/Framework/Validation/ValidationRule.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Framework\Validation;
|
||||
|
||||
interface ValidationRule
|
||||
{
|
||||
/**
|
||||
* Validiert einen Wert anhand der Regel
|
||||
*/
|
||||
public function validate(mixed $value): bool;
|
||||
|
||||
/**
|
||||
* Gibt alle Fehlermeldungen für diese Regel zurück
|
||||
*
|
||||
* @return array<string> Liste der Fehlermeldungen
|
||||
*/
|
||||
public function getErrorMessages(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user