ConstraintC.php 394 B

123456789101112131415161718192021
  1. <?php
  2. namespace Symfony\Tests\Component\Validator\Fixtures;
  3. use Symfony\Component\Validator\Constraint;
  4. /** @Annotation */
  5. class ConstraintC extends Constraint
  6. {
  7. public $option1;
  8. public function getRequiredOptions()
  9. {
  10. return array('option1');
  11. }
  12. public function getTargets()
  13. {
  14. return array(self::PROPERTY_CONSTRAINT, self::CLASS_CONSTRAINT);
  15. }
  16. }