Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
17 lines
305 B
PHP
17 lines
305 B
PHP
<?php
|
|
|
|
namespace App\Data\Validation;
|
|
|
|
abstract class Validator
|
|
{
|
|
protected function error(string $message): ValidationResult
|
|
{
|
|
return new ValidationResult(true, $message);
|
|
}
|
|
|
|
protected function success(): ValidationResult
|
|
{
|
|
return new ValidationResult(false);
|
|
}
|
|
}
|