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
파일 보기 프로젝트 열기: fenos/notifynder

공개 메소드들

메소드 설명
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