PHP Class Respect\Validation\Rules\Size

Author: Henrique Moody ([email protected])
Inheritance: extends Respect\Validation\Rules\AbstractRule
Afficher le fichier Open project: respect/validation Class Usage Examples

Méthodes publiques

Свойство Type Description
$maxSize string
$maxValue integer
$minSize string
$minValue integer

Méthodes publiques

Méthode Description
__construct ( string $minSize = null, string $maxSize = null )
validate ( $input )

Private Methods

Méthode Description
isValidSize ( integer $size ) : boolean
toBytes ( mixed $size ) : integer

Method Details

__construct() public méthode

public __construct ( string $minSize = null, string $maxSize = null )
$minSize string
$maxSize string

validate() public méthode

public validate ( $input )

Property Details

$maxSize public_oe property

public string $maxSize
Résultat string

$maxValue public_oe property

public int $maxValue
Résultat integer

$minSize public_oe property

public string $minSize
Résultat string

$minValue public_oe property

public int $minValue
Résultat integer