PHP Class Jyxo\Input\Validator\StringLengthGreaterThan

Author: Jan Pěček
Inheritance: extends AbstractValidator
Datei anzeigen Open project: jyxo/php

Protected Properties

Property Type Description
$min integer Minimal string length.

Public Methods

Method 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 method

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

getMin() public method

Returns the minimal string length.
public getMin ( ) : integer
return integer

isValid() public method

Validates a value.
public isValid ( mixed $value ) : boolean
$value mixed Input value
return boolean

setMin() public method

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

Property Details

$min protected_oe property

Minimal string length.
protected int $min
return integer