PHP Class Jyxo\Input\Validator\StringLengthGreaterThan

Author: Jan Pěček
Inheritance: extends AbstractValidator
Afficher le fichier Open project: jyxo/php

Protected Properties

Свойство Type Description
$min integer Minimal string length.

Méthodes publiques

Méthode Description
__construct ( integer $min ) Constructor.
getMin ( ) : integer Returns the minimal string length.
isValid ( mixed $value ) : boolean Validates a value.
setMin ( integer $min ) : self Sets the minimal string length.

Method Details

__construct() public méthode

Constructor.
public __construct ( integer $min )
$min integer Minimal string length (value length must be greater)

getMin() public méthode

Returns the minimal string length.
public getMin ( ) : integer
Résultat integer

isValid() public méthode

Validates a value.
public isValid ( mixed $value ) : boolean
$value mixed Input value
Résultat boolean

setMin() public méthode

Sets the minimal string length.
public setMin ( integer $min ) : self
$min integer Minimal string length
Résultat self

Property Details

$min protected_oe property

Minimal string length.
protected int $min
Résultat integer