Свойство | Type | Description | |
---|---|---|---|
$strictMode | boolean | By default it's false. |
Méthode | 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. |
Méthode | 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 | ||
Résultat | array | mixed |
protected replaceBody ( $body, $valueMatch, $replacer ) : mixed | ||
$body | ||
$valueMatch | ||
$replacer | ||
Résultat | mixed |
public static setStrictExtra ( boolean | true $set = true ) | ||
$set | boolean | true |
protected static bool $strictMode | ||
Résultat | boolean |