PHP Class Iber\Generator\Utilities\RuleProcessor

Show file Open project: ignasbernotas/laravel-model-generator

Public Methods

Method Description
check ( $rules, $value ) : boolean Check if the value matches the rules.
ends ( $options, $value ) : boolean Check if a value ends in any of the given values.
equals ( $options, $value ) : boolean Check if a value is equal to any of the given values.
parseRules ( $rules ) : array Parse rules.
starts ( $options, $value ) : boolean Check if a value starts in any of the given values.

Method Details

check() public method

Check if the value matches the rules.
public check ( $rules, $value ) : boolean
$rules
$value
return boolean

ends() public method

Check if a value ends in any of the given values.
public ends ( $options, $value ) : boolean
$options
$value
return boolean

equals() public method

Check if a value is equal to any of the given values.
public equals ( $options, $value ) : boolean
$options
$value
return boolean

parseRules() public method

Parse rules.
public parseRules ( $rules ) : array
$rules
return array

starts() public method

Check if a value starts in any of the given values.
public starts ( $options, $value ) : boolean
$options
$value
return boolean