PHP Class Gajus\Vlad\Validator

Show file Open project: gajus/vlad Class Usage Examples

Protected Properties

Property Type Description
$default_options
$message
$requires_value

Public Methods

Method Description
__construct ( array $options = [] )
assess ( mixed $value ) : boolean
getMessage ( ) : string
getOptions ( ) : array

Method Details

__construct() public method

public __construct ( array $options = [] )
$options array

assess() abstract public method

abstract public assess ( mixed $value ) : boolean
$value mixed
return boolean

getMessage() public static method

public static getMessage ( ) : string
return string

getOptions() public method

public getOptions ( ) : array
return array

Property Details

$default_options protected static property

protected static $default_options

$message protected static property

protected static $message

$requires_value protected static property

protected static $requires_value