ConstraintA.php 386 B

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