PHP Class JBZoo\SimpleTypes\Parser

Datei anzeigen Open project: jbzoo/simpletypes Class Usage Examples

Protected Properties

Property Type Description
$_default string
$_rules array

Public Methods

Method Description
__construct ( string $default = '', array $ruleList = [] )
addRule ( string $newRule )
checkRule ( string $rule ) : string
cleanRule ( string $rule ) : string
cleanValue ( string $value ) : float
getCodeList ( ) : array
parse ( mixed $data = null, string $forceRule = null ) : array
removeRule ( string $rule ) : boolean

Method Details

__construct() public method

public __construct ( string $default = '', array $ruleList = [] )
$default string
$ruleList array

addRule() public method

public addRule ( string $newRule )
$newRule string

checkRule() public method

public checkRule ( string $rule ) : string
$rule string
return string

cleanRule() public method

public cleanRule ( string $rule ) : string
$rule string
return string

cleanValue() public method

public cleanValue ( string $value ) : float
$value string
return float

getCodeList() public method

public getCodeList ( ) : array
return array

parse() public method

public parse ( mixed $data = null, string $forceRule = null ) : array
$data mixed
$forceRule string
return array

removeRule() public method

public removeRule ( string $rule ) : boolean
$rule string
return boolean

Property Details

$_default protected_oe property

protected string $_default
return string

$_rules protected_oe property

protected array $_rules
return array