/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
- <?php
- /*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Symfony\Component\Validator\Constraints;
- class Min extends \Symfony\Component\Validator\Constraint
- {
- public $message = 'This value should be {{ limit }} or more';
- public $limit;
- /**
- * {@inheritDoc}
- */
- public function getDefaultOption()
- {
- return 'limit';
- }
- /**
- * {@inheritDoc}
- */
- public function getRequiredOptions()
- {
- return array('limit');
- }
- /**
- * {@inheritDoc}
- */
- public function getTargets()
- {
- return self::PROPERTY_CONSTRAINT;
- }
- }