Tracable
Defines debug and help methods for use by Corporation and Transition class instances to log to the console and save NetworkHistory entries regarding the current Corporation lifecycle.
Table of Contents
Properties
- $debug : bool
- Flag indicating whether debugging output is enabled (posts history to console among other information).
- $saveHistory : bool
- Flag indicating whether history entries should be saved to the database.
Methods
- debug() : void
- Outputs debug information if debugging is enabled.
- history() : void
- Saves history entries to the database.
Properties
$debug
Flag indicating whether debugging output is enabled (posts history to console among other information).
public
bool
$debug
= false
$saveHistory
Flag indicating whether history entries should be saved to the database.
public
bool
$saveHistory
= true
Methods
debug()
Outputs debug information if debugging is enabled.
public
debug(string $info) : void
Parameters
- $info : string
-
The debug message.
history()
Saves history entries to the database.
public
history(TuringHistory $entryType, mixed $content) : void
Parameters
- $entryType : TuringHistory
- $content : mixed