Callback.php 739 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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 Callback extends \Symfony\Component\Validator\Constraint
  12. {
  13. public $methods;
  14. /**
  15. * {@inheritDoc}
  16. */
  17. public function getRequiredOptions()
  18. {
  19. return array('methods');
  20. }
  21. /**
  22. * {@inheritDoc}
  23. */
  24. public function getDefaultOption()
  25. {
  26. return 'methods';
  27. }
  28. /**
  29. * {@inheritDoc}
  30. */
  31. public function getTargets()
  32. {
  33. return self::CLASS_CONSTRAINT;
  34. }
  35. }