PHP Трейт 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
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

getRequiredFields() публичный Метод

Returns all required fields including the config ones.
public getRequiredFields ( ) : array
Результат array

hasRequiredFields() публичный Метод

Check that the builder has the required field to send the notifications correctly.
public hasRequiredFields ( $array ) : boolean
$array
Результат boolean

isAssociativeArr() защищенный Метод

protected isAssociativeArr ( array $arr ) : boolean
$arr array
Результат boolean

isCarbon() защищенный Метод

Value has to be a valid Carbon Instance.
protected isCarbon ( $value ) : boolean | InvalidArgumentExceptio\InvalidArgumentException
$value
Результат boolean | InvalidArgumentExceptio\InvalidArgumentException | InvalidArgumentException

isMultidimensionalArray() публичный Метод

Check if the array is multidimensional.
public isMultidimensionalArray ( $arr ) : boolean
$arr
Результат boolean

isNumeric() защищенный Метод

Value has to be numeric.
protected isNumeric ( $value ) : boolean
$value
Результат boolean

isReadyArrToFormatInJson() защищенный Метод

Check if the array passed is multidimensional.
protected isReadyArrToFormatInJson ( array $arr ) : boolean
$arr array
Результат boolean

isRequiredField() публичный Метод

Check if is a required field.
public isRequiredField ( $offset ) : boolean
$offset
Результат boolean

isString() защищенный Метод

Value has to be a string.
protected isString ( $value ) : boolean
$value
Результат boolean