All.php 693 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Validator\Constraints;
  11. class All extends \Symfony\Component\Validator\Constraint
  12. {
  13. public $constraints = array();
  14. public function defaultOption()
  15. {
  16. return 'constraints';
  17. }
  18. public function requiredOptions()
  19. {
  20. return array('constraints');
  21. }
  22. /**
  23. * {@inheritDoc}
  24. */
  25. public function targets()
  26. {
  27. return self::PROPERTY_CONSTRAINT;
  28. }
  29. }