Method | Description | |
---|---|---|
__construct ( string $tag = null ) | Creates a style. | |
bg ( string $color ) : static | Sets the background color. | |
bgBlack ( ) : static | Sets the background color to black. | |
bgBlue ( ) : static | Sets the background color to blue. | |
bgCyan ( ) : static | Sets the background color to cyan. | |
bgDefault ( ) : static | Resets the background color to the system's default. | |
bgGreen ( ) : static | Sets the background color to green. | |
bgMagenta ( ) : static | Sets the background color to magenta. | |
bgRed ( ) : static | Sets the background color to red. | |
bgWhite ( ) : static | Sets the background color to white. | |
bgYellow ( ) : static | Sets the background color to yellow. | |
blinking ( ) : static | Enables blinking. | |
bold ( ) : static | Sets the font weight to bold. | |
fg ( string $color ) : static | Sets the foreground color. | |
fgBlack ( ) : static | Sets the foreground color to black. | |
fgBlue ( ) : static | Sets the foreground color to blue. | |
fgCyan ( ) : static | Sets the foreground color to cyan. | |
fgDefault ( ) : static | Resets the foreground color to the system's default. | |
fgGreen ( ) : static | Sets the foreground color to green. | |
fgMagenta ( ) : static | Sets the foreground color to magenta. | |
fgRed ( ) : static | Sets the foreground color to red. | |
fgWhite ( ) : static | Sets the foreground color to white. | |
fgYellow ( ) : static | Sets the foreground color to yellow. | |
getBackgroundColor ( ) : string | Returns the background color. | |
getForegroundColor ( ) : string | Returns the foreground color. | |
getTag ( ) : string | Returns the style's tag name. | |
hidden ( ) : static | Hides the text. | |
inverse ( ) : static | Enables inverse colors. | |
isBlinking ( ) : boolean | Returns whether the text is blinking. | |
isBold ( ) : boolean | Returns whether the text is bold. | |
isHidden ( ) : boolean | Returns whether the text is concealed. | |
isInverse ( ) : boolean | Returns whether the text is reversed. | |
isUnderlined ( ) : boolean | Returns whether the text is underlined. | |
noTag ( ) : static | Creates a style without a tag name. | |
notBlinking ( ) : static | Disables blinking. | |
notBold ( ) : static | Sets the font weight to normal. | |
notHidden ( ) : static | Does not hide the text. | |
notInverse ( ) : static | Disables inverse colors. | |
notUnderlined ( ) : static | Disables underlining. | |
tag ( string $tag ) : static | Creates a style with the given tag name. | |
underlined ( ) : static | Enables underlining. |
public __construct ( string $tag = null ) | ||
$tag | string | The tag name. |
public bgBlack ( ) : static | ||
return | static | The current instance. |
public bgBlue ( ) : static | ||
return | static | The current instance. |
public bgCyan ( ) : static | ||
return | static | The current instance. |
public bgDefault ( ) : static | ||
return | static | The current instance. |
public bgGreen ( ) : static | ||
return | static | The current instance. |
public bgMagenta ( ) : static | ||
return | static | The current instance. |
public bgRed ( ) : static | ||
return | static | The current instance. |
public bgWhite ( ) : static | ||
return | static | The current instance. |
public bgYellow ( ) : static | ||
return | static | The current instance. |
public blinking ( ) : static | ||
return | static | The current instance. |
public bold ( ) : static | ||
return | static | The current instance. |
public fgBlack ( ) : static | ||
return | static | The current instance. |
public fgBlue ( ) : static | ||
return | static | The current instance. |
public fgCyan ( ) : static | ||
return | static | The current instance. |
public fgDefault ( ) : static | ||
return | static | The current instance. |
public fgGreen ( ) : static | ||
return | static | The current instance. |
public fgMagenta ( ) : static | ||
return | static | The current instance. |
public fgRed ( ) : static | ||
return | static | The current instance. |
public fgWhite ( ) : static | ||
return | static | The current instance. |
public fgYellow ( ) : static | ||
return | static | The current instance. |
public getBackgroundColor ( ) : string | ||
return | string | One of the color constants or `null` if the system's default should be used. |
public getForegroundColor ( ) : string | ||
return | string | One of the color constants or `null` if the system's default should be used. |
public inverse ( ) : static | ||
return | static | The current instance. |
public isBlinking ( ) : boolean | ||
return | boolean | Returns `true` if text is formatted blinking and `false` otherwise. |
public isUnderlined ( ) : boolean | ||
return | boolean | Returns `true` if text is formatted underlined and `false` otherwise. |
public static noTag ( ) : static | ||
return | static | The created style. |
public notBlinking ( ) : static | ||
return | static | The current instance. |
public notBold ( ) : static | ||
return | static | The current instance. |
public notHidden ( ) : static | ||
return | static | The current instance. |
public notInverse ( ) : static | ||
return | static | The current instance. |
public notUnderlined ( ) : static | ||
return | static | The current instance. |
public underlined ( ) : static | ||
return | static | The current instance. |