DoDomuDojade Documentation

ConsoleOutput
in package

FinalYes

Defines console output helper functions

Table of Contents

Constants

BLUE  = "\x1b[36m"
GRAY  = "\x1b[90m"
GREEN  = "\x1b[32m"
RED  = "\x1b[31m"
RESET  = "\x1b[0m"
YELLOW  = "\x1b[33m"

Methods

blank()  : void
Outputs new line to console
error()  : void
Outputs error to console
info()  : void
Outputs info to console
line()  : void
Outputs a message to the console
success()  : void
Outputs success to console
table()  : void
Outputs a table to console
warn()  : void
Outputs warning to console

Constants

Methods

error()

Outputs error to console

public error(string $message) : void
Parameters
$message : string

info()

Outputs info to console

public info(string $message) : void
Parameters
$message : string

line()

Outputs a message to the console

public line([string $message = "" ]) : void
Parameters
$message : string = ""

success()

Outputs success to console

public success(string $message) : void
Parameters
$message : string

table()

Outputs a table to console

public table(array<string|int, mixed> $headers, array<string|int, mixed> $rows) : void
Parameters
$headers : array<string|int, mixed>
$rows : array<string|int, mixed>

warn()

Outputs warning to console

public warn(string $message) : void
Parameters
$message : string

        
On this page

Search results