PageRenderTime 42ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Symfony/Component/Validator/Constraints/Min.php

https://github.com/avalanche123/symfony
PHP | 42 lines | 19 code | 6 blank | 17 comment | 0 complexity | a661fead77fb8f528397fff8879d7a87 MD5 | raw file
  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 Min extends \Symfony\Component\Validator\Constraint
  12. {
  13. public $message = 'This value should be {{ limit }} or more';
  14. public $limit;
  15. /**
  16. * {@inheritDoc}
  17. */
  18. public function getDefaultOption()
  19. {
  20. return 'limit';
  21. }
  22. /**
  23. * {@inheritDoc}
  24. */
  25. public function getRequiredOptions()
  26. {
  27. return array('limit');
  28. }
  29. /**
  30. * {@inheritDoc}
  31. */
  32. public function getTargets()
  33. {
  34. return self::PROPERTY_CONSTRAINT;
  35. }
  36. }