PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/htdocs/symfony/2.0.0pr3/src/vendor/symfony/src/Symfony/Component/Validator/Constraints/Max.php

http://github.com/pmjones/php-framework-benchmarks
PHP | 25 lines | 15 code | 4 blank | 6 comment | 0 complexity | 23fc2f2e6cf793141fd1f359ccc793de MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1
  1. <?php
  2. namespace Symfony\Component\Validator\Constraints;
  3. class Max extends \Symfony\Component\Validator\Constraint
  4. {
  5. public $message = 'Symfony.Validator.Max.message';
  6. public $limit;
  7. /**
  8. * {@inheritDoc}
  9. */
  10. public function defaultOption()
  11. {
  12. return 'limit';
  13. }
  14. /**
  15. * {@inheritDoc}
  16. */
  17. public function requiredOptions()
  18. {
  19. return array('limit');
  20. }
  21. }