extends abstract class Phalcon\Validation\Validator
implements Phalcon\Validation\ValidatorInterface
Source on GitHub
Validates that a string has the specified maximum and minimum constraints The test is passed if for a string’s length L, min<=L<=max, i.e. L must be at least min, and at most max.
use Phalcon\Validation\Validator\StringLength as StringLength;
$validation->add('name_last', new StringLength([
'max' => 50,
'min' => 2,
'messageMaximum' => 'We don\'