public function __construct($minLength = 0, $maxLength = null) { parent::__construct($minLength, $maxLength); }
/** * @param string $formatMinimum * @param string $formatMaximum * @example * ```php * new DateValidator( * '2000-10-12', * '2020-10-12' * ); * ``` */ public function __construct(string $formatMinimum = null, string $formatMaximum = null) { parent::__construct(); $this->formatMinimum = $formatMinimum; $this->formatMaximum = $formatMaximum; }
public function __construct($minLength = 0, $maxLength = null) { parent::__construct($minLength, $maxLength, static::getUsernamePattern()); }