Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Constraint;
  4.  
  5. use Symfony\Component\Validator\Constraint;
  6.  
  7. /**
  8. * @Annotation
  9. */
  10. class DTO extends Constraint
  11. {
  12. public $className;
  13.  
  14. public function validatedBy(): string
  15. {
  16. return DTOValidator::class;
  17. }
  18.  
  19. public function getDefaultOption(): string
  20. {
  21. return 'className';
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement