public function validateMaxLength($length)
    {
        $this->validator_attributes[] = 'data-parsley-maxlength="' . (int)$length . '"';

        $this->validator_checks['max_length'] = (int)$length;

        return $this;
    }
public function validateMaxLength($length)
    {
        $this->validator_attributes[] = 'data-parsley-maxlength="' . (int)$length . '"';

        $this->validator_checks['max_length'] = (int)$length;

        return $this;
    }
public function validateMaxLength ( $ length ) { $ this -> validator_attributes [ ] = 'data-parsley-maxlength="' . ( int ) $ length . '"' ; $ this -> validator_checks [ 'max_length' ] = ( int ) $ length ; return $ this ; }
Validates that the length of a string is not larger than the given limit.

@param int $length

@return $this
Validates that the length of a string is not larger than the given limit .