Notifications are used to keep users aware of the current state of an executed command. They help users to have a clearer understanding pf what is going on. For example, there could be notifications for when a code successfully executes or when an error is encountered. The Cli class provides some useful methods for setting responses. These method have a predefined text prefixes assigned to messages. The text prefixes also use similarly related color codes to quickly call console users to awareness. The following are notification related methods.
Cli::error($text, $indent);
where:
$text : The error text to be prefixed
$indent : Number of left space indents to be added
Cli::warning($text, $indent);
where:
$text : The error text to be prefixed
$indent : Number of left space indents to be added
Cli::warning($text, $indent);
where:
$text : The error text to be prefixed
$indent : Number of left space indents to be added
Cli::warning($text, $indent);
where:
$text : The error text to be prefixed
$indent : Number of left space indents to be added
Cli::warning($text, $indent);
where:
$text : The error text to be prefixed
$indent : Number of left space indents to be added