PHP Trait Fenos\Notifynder\Builder\BuilderRules

Simple trait that define the rules that the builder has to match. It required mandatory fields listed in the $requiredFields property
Afficher le fichier Open project: fenos/notifynder

Méthodes publiques

Méthode Description
getRequiredFields ( ) : array Returns all required fields including the config ones.
hasRequiredFields ( $array ) : boolean Check that the builder has the required field to send the notifications correctly.
isMultidimensionalArray ( $arr ) : boolean Check if the array is multidimensional.
isRequiredField ( $offset ) : boolean Check if is a required field.

Méthodes protégées

Méthode Description
isAssociativeArr ( array $arr ) : boolean
isCarbon ( $value ) : boolean | InvalidArgumentExceptio\InvalidArgumentException Value has to be a valid Carbon Instance.
isNumeric ( $value ) : boolean Value has to be numeric.
isReadyArrToFormatInJson ( array $arr ) : boolean Check if the array passed is multidimensional.
isString ( $value ) : boolean Value has to be a string.

Method Details

getRequiredFields() public méthode

Returns all required fields including the config ones.
public getRequiredFields ( ) : array
Résultat array

hasRequiredFields() public méthode

Check that the builder has the required field to send the notifications correctly.
public hasRequiredFields ( $array ) : boolean
$array
Résultat boolean

isAssociativeArr() protected méthode

protected isAssociativeArr ( array $arr ) : boolean
$arr array
Résultat boolean

isCarbon() protected méthode

Value has to be a valid Carbon Instance.
protected isCarbon ( $value ) : boolean | InvalidArgumentExceptio\InvalidArgumentException
$value
Résultat boolean | InvalidArgumentExceptio\InvalidArgumentException | InvalidArgumentException

isMultidimensionalArray() public méthode

Check if the array is multidimensional.
public isMultidimensionalArray ( $arr ) : boolean
$arr
Résultat boolean

isNumeric() protected méthode

Value has to be numeric.
protected isNumeric ( $value ) : boolean
$value
Résultat boolean

isReadyArrToFormatInJson() protected méthode

Check if the array passed is multidimensional.
protected isReadyArrToFormatInJson ( array $arr ) : boolean
$arr array
Résultat boolean

isRequiredField() public méthode

Check if is a required field.
public isRequiredField ( $offset ) : boolean
$offset
Résultat boolean

isString() protected méthode

Value has to be a string.
protected isString ( $value ) : boolean
$value
Résultat boolean