Property | Type | Description | |
---|---|---|---|
$strictMode | boolean | By default it's false. |
Method | Description | |
---|---|---|
parse ( $item ) : string | Parse the body of a notification with your extras values or relation values. | |
setStrictExtra ( boolean | true $set = true ) | Set strict mode. |
Method | Description | |
---|---|---|
extraToArray ( $extra ) : array | mixed | Trying to transform extra in from few data types to array type. | |
getValues ( $body ) : mixed | Get the values between {} and return an array of it. | |
isJson ( $value ) : boolean | Check if is a json string. | |
mixedGet ( array | object $object, string $key, null $default = null ) : mixed | Get a value by dot-key of an array, object or mix of both. | |
replaceBody ( $body, $valueMatch, $replacer ) : mixed | Replace body of the category. |
protected extraToArray ( $extra ) : array | mixed | ||
$extra | ||
return | array | mixed |
protected replaceBody ( $body, $valueMatch, $replacer ) : mixed | ||
$body | ||
$valueMatch | ||
$replacer | ||
return | mixed |
public static setStrictExtra ( boolean | true $set = true ) | ||
$set | boolean | true |
protected static bool $strictMode | ||
return | boolean |