1: <?php
2: /**
3: * Wei Framework
4: *
5: * @copyright Copyright (c) 2008-2013 Twin Huang
6: * @license http://opensource.org/licenses/mit-license.php MIT License
7: */
8:
9: namespace Wei\Validator;
10:
11: /**
12: * Check if the characters length of input is equals specified length
13: *
14: * @author Twin Huang <twinhuang@qq.com>
15: */
16: class CharLength extends Length
17: {
18: protected $lengthMessage = '%name% must have %length% characters';
19:
20: protected $notInMessage = '%name% must have %min% to %max% characters';
21:
22: protected $countByChars = true;
23: }
24: