PHP 클래스 Jyxo\Input\Validator\StringLengthBetween

저자: Jakub Tománek
상속: extends AbstractValidator
파일 보기 프로젝트 열기: jyxo/php

보호된 프로퍼티들

프로퍼티 타입 설명
$max integer Maximal string length.
$min integer Minimal string length.

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Sets both maximal and 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)

getMax() 공개 메소드

Returns the maximum string length.
public getMax ( ) : integer
리턴 integer

getMin() 공개 메소드

Return the minimal string length.
public getMin ( ) : integer
리턴 integer

isValid() 공개 메소드

Validates a value.
public isValid ( string $value ) : boolean
$value string Input value
리턴 boolean

setMax() 공개 메소드

Sets the maximal string length.
public setMax ( integer $max ) : self
$max integer Maximal string length
리턴 self

setMin() 공개 메소드

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

프로퍼티 상세

$max 보호되어 있는 프로퍼티

Maximal string length.
protected int $max
리턴 integer

$min 보호되어 있는 프로퍼티

Minimal string length.
protected int $min
리턴 integer