Property | Type | Description | |
---|---|---|---|
$max | integer | Maximal string length. | |
$min | integer | Minimal string length. |
Method | Description | |
---|---|---|
__construct ( integer $min, integer $max ) | Constructor. | |
getMax ( ) : integer | Returns the maximum string length. | |
getMin ( ) : integer | Return the minimal string length. | |
isValid ( string $value ) : boolean | Validates a value. | |
setMax ( integer $max ) : self | Sets the maximal string length. | |
setMin ( integer $min ) : self | Sets the minimal string length. |
public __construct ( integer $min, integer $max ) | ||
$min | integer | Minimal length (string length must be greater of equal) |
$max | integer | Maximal length (string length must be less or equal) |