PHP 클래스 Jyxo\Input\Validator\LessThan

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

보호된 프로퍼티들

프로퍼티 타입 설명
$max integer Desired maximum value

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Sets maximum value.
public __construct ( integer $max )
$max integer Maximum value (value must be less)

getMax() 공개 메소드

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

isValid() 공개 메소드

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

setMax() 공개 메소드

Sets the maximum value.
public setMax ( integer $max ) : self
$max integer New maximum value
리턴 self

프로퍼티 상세

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

Desired maximum value
protected int $max
리턴 integer