PHP 클래스 Bluz\Validator\Rule\AbstractRule

저자: Anton Shevchuk
파일 보기 프로젝트 열기: bluzphp/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$template string Template for error output - {{name}} - name of field - {{input}} - input value

공개 메소드들

메소드 설명
__invoke ( mixed $input ) : boolean Invoke
__toString ( ) : string Cast to string
assert ( string $input ) : boolean Assert
getTemplate ( ) : string Get error template
validate ( mixed $input ) : boolean Check input data

메소드 상세

__invoke() 공개 메소드

Invoke
public __invoke ( mixed $input ) : boolean
$input mixed
리턴 boolean

__toString() 공개 메소드

Cast to string
public __toString ( ) : string
리턴 string

assert() 공개 메소드

Assert
public assert ( string $input ) : boolean
$input string
리턴 boolean

getTemplate() 공개 메소드

Get error template
public getTemplate ( ) : string
리턴 string

validate() 추상적인 공개 메소드

Check input data
abstract public validate ( mixed $input ) : boolean
$input mixed
리턴 boolean

프로퍼티 상세

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

Template for error output - {{name}} - name of field - {{input}} - input value
protected string $template
리턴 string