Generates a user-level notice, warning, or an error with styling.
Signature
public function emit([array|string|null
$text = NULL,
[string
$color = 'yellow',
[int
$type = E_USER_NOTICE]]] )
Parameters
$text
—
object
[optional] The text wished to be styled (when passing an array, if array key is a valid color it will style this array element value with its key).
$color
—
string
[optional] Case sensitive ANSI color name in this list [black, red, green, yellow, magenta, cyan, white, default] (when passing array, this parameter will be the fallback).