Min.php 670 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Symfony\Component\Validator\Constraints;
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  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 defaultOption()
  19. {
  20. return 'limit';
  21. }
  22. /**
  23. * {@inheritDoc}
  24. */
  25. public function requiredOptions()
  26. {
  27. return array('limit');
  28. }
  29. }