\Vegas\CliColorsOuputTrait

Class ColorsOuputTrait

Summary

Methods
Properties
Constants
__construct()
getColoredString()
getForegroundColors()
getBackgroundColors()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct()

Constructors Defines available colors

getColoredString()

getColoredString( $string, null $foreground_color, null $background_color) : string

Returns colored string

Parameters

$string
null $foreground_color
null $background_color

Returns

string

getForegroundColors()

getForegroundColors() : array

Returns all foreground color names

Returns

array

getBackgroundColors()

getBackgroundColors() : array

Returns all background color names

Returns

array