Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Constraint;
- use Symfony\Component\Validator\Constraint;
- /**
- * @Annotation
- */
- class DTO extends Constraint
- {
- public $className;
- public function validatedBy(): string
- {
- return DTOValidator::class;
- }
- public function getDefaultOption(): string
- {
- return 'className';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement