PHP 클래스 Pop\Validator\Validator

저자: Nick Sagona, III ([email protected])
상속: implements Pop\Validator\ValidatorInterface
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$condition boolean Validator condition
$defaultMessage string Validator default message
$input mixed Input value to test
$result boolean Validator test result
$value mixed Validator value to test against

공개 메소드들

메소드 설명
__construct ( mixed $value = null, string $msg = null, boolean $condition = true ) : Validator Constructor
factory ( mixed $value = null, string $msg = null, boolean $condition = true ) : Validator Static method to instantiate the validator object and return itself to facilitate chaining methods together.
getCondition ( ) : boolean Method to get the validator condition
getInput ( ) : mixed Method to get the validator input
getMessage ( ) : boolean Method to get the validator default message
getValue ( ) : mixed Method to get the validator value
setCondition ( boolean $condition ) : Pop\Validator\ValidatorInterface Method to set the validator condition
setInput ( mixed $input ) : Pop\Validator\ValidatorInterface Method to set the validator input
setMessage ( string $message ) : Pop\Validator\ValidatorInterface Method to set the validator condition
setValue ( mixed $value ) : Pop\Validator\ValidatorInterface Method to set the validator value

메소드 상세

__construct() 공개 메소드

Instantiate the validator object
public __construct ( mixed $value = null, string $msg = null, boolean $condition = true ) : Validator
$value mixed
$msg string
$condition boolean
리턴 Validator

factory() 공개 정적인 메소드

Static method to instantiate the validator object and return itself to facilitate chaining methods together.
public static factory ( mixed $value = null, string $msg = null, boolean $condition = true ) : Validator
$value mixed
$msg string
$condition boolean
리턴 Validator

getCondition() 공개 메소드

Method to get the validator condition
public getCondition ( ) : boolean
리턴 boolean

getInput() 공개 메소드

Method to get the validator input
public getInput ( ) : mixed
리턴 mixed

getMessage() 공개 메소드

Method to get the validator default message
public getMessage ( ) : boolean
리턴 boolean

getValue() 공개 메소드

Method to get the validator value
public getValue ( ) : mixed
리턴 mixed

setCondition() 공개 메소드

Method to set the validator condition
public setCondition ( boolean $condition ) : Pop\Validator\ValidatorInterface
$condition boolean
리턴 Pop\Validator\ValidatorInterface

setInput() 공개 메소드

Method to set the validator input
public setInput ( mixed $input ) : Pop\Validator\ValidatorInterface
$input mixed
리턴 Pop\Validator\ValidatorInterface

setMessage() 공개 메소드

Method to set the validator condition
public setMessage ( string $message ) : Pop\Validator\ValidatorInterface
$message string
리턴 Pop\Validator\ValidatorInterface

setValue() 공개 메소드

Method to set the validator value
public setValue ( mixed $value ) : Pop\Validator\ValidatorInterface
$value mixed
리턴 Pop\Validator\ValidatorInterface

프로퍼티 상세

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

Validator condition
protected bool $condition
리턴 boolean

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

Validator default message
protected string $defaultMessage
리턴 string

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

Input value to test
protected mixed $input
리턴 mixed

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

Validator test result
protected bool $result
리턴 boolean

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

Validator value to test against
protected mixed $value
리턴 mixed