\IncludesText

Functions for printing text.

Summary

Methods
Properties
Constants
printTimeDuration()
debug()
message()
setDebug()
getDebug()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$debugMode
N/A

Properties

$debugMode

$debugMode : boolean

Type

boolean — If true - print more information.

Methods

printTimeDuration()

printTimeDuration(float|string  $startTime) 

Prints how much time took some action in seconds.

Parameters

float|string $startTime

Time when action started

debug()

debug(mixed  $message) 

Execute message() function if $debugMode is set to true.

Parameters

mixed $message

Message to print if in DEBUG mode

message()

message(mixed  $message) 

Prints message with new lines.

Parameters

mixed $message

Message to print

setDebug()

setDebug(boolean  $value) 

Set $debugMode property value.

Parameters

boolean $value

getDebug()

getDebug() : boolean

Get $debugMode property value.

Returns

boolean