/constraint/max.php
https://bitbucket.org/oligriffiths/com_validation · PHP · 21 lines · 14 code · 2 blank · 5 comment · 0 complexity · ef3cc699d59963090fc3474977df62f1 MD5 · raw file
- <?php
- /**
- * Created By: Oli Griffiths
- * Date: 11/12/2012
- * Time: 12:16
- */
- namespace Nooku\Component\Validation;
- use Nooku\Library;
- class ConstraintMax extends ConstraintDefault
- {
- protected function _initialize(Library\ObjectConfig $config)
- {
- $config->append(array(
- 'max' => null,
- 'message' => '{{ target }} should be {{ max }} or less, "{{ value }}" given'
- ));
- parent::_initialize($config);
- }
- }