Kajona\System\System\Validators\TwocharsValidator

A simple validator to validate is a string has a length of exactly two chars By default, the string must contain a single char, the max length is unlimited.

Synopsis

class TwocharsValidator implements ValidatorInterface {
}

Hierarchy

Methods

public

  • validate() — Validates the passed chunk of data.