ConstraintA.php 412 B

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