PHP 클래스 Jyxo\Input\Validator\StringLengthLessThan

저자: Jan Pěček
상속: extends AbstractValidator
파일 보기 프로젝트 열기: jyxo/php

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
__construct ( integer $max ) Constructor.
getMax ( ) : integer Returns the maximal string length.
isValid ( mixed $value ) : boolean Validates a value.
setMax ( integer $max ) : self Sets the maximal string length.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( integer $max )
$max integer Maximal string length (value length must be lower)

getMax() 공개 메소드

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

isValid() 공개 메소드

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

setMax() 공개 메소드

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

프로퍼티 상세

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

Maximal string length.
protected int $max
리턴 integer