Back to ColorProcessor class

Method addPredefinedStyles

private $this
addPredefinedStyles
()
Adds predefined color styles to the ColorProcessor object
Returns
  • $this
Since
  • 4.0.0

Method addPredefinedStyles - Source code

/**
 * Adds predefined color styles to the ColorProcessor object
 *
 * @return  $this
 *
 * @since   4.0.0
 */
private function addPredefinedStyles()
{
    $this->addStyle('info', new ColorStyle('green', '', ['bold']));
    $this->addStyle('comment', new ColorStyle('yellow', '', ['bold']));
    $this->addStyle('question', new ColorStyle('black', 'cyan'));
    $this->addStyle('error', new ColorStyle('white', 'red'));
    return $this;
}
OSZAR »