Exemplo n.º 1
0
 public function __construct($minLength = 0, $maxLength = null)
 {
     parent::__construct($minLength, $maxLength);
 }
Exemplo n.º 2
0
 /**
  * @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;
 }
Exemplo n.º 3
0
 public function __construct($minLength = 0, $maxLength = null)
 {
     parent::__construct($minLength, $maxLength, static::getUsernamePattern());
 }