\ManiaControl\Callbacks\Structures\TrackManiaOnCommandStructure

Structure Class for the OnCommand Structure Callback

Summary

Methods
Properties
Constants
getName()
getValue()
getTime()
getPlainJsonObject()
getUsageInformation()
toJson()
No public properties found
No constants found
__construct()
$time
$maniaControl
N/A
No private methods found
$name
$value
$plainJsonObject
N/A

Properties

$time

$time : 

Type

$name

$name : 

Type

$value

$value : 

Type

$plainJsonObject

$plainJsonObject : 

Type

Methods

getName()

getName() : string

< Name of the command

Returns

string

getValue()

getValue() : mixed

< The value passed by the command "boolean": true, "integer": 123, "real": 123.456, "text": "an example value"

Returns

mixed

getTime()

getTime() : integer

Gets the Server Time the Callback was sent

Returns

integer —

Time since Serverstart

getPlainJsonObject()

getPlainJsonObject() 

Gets the Plain Json

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

toJson()

toJson() 

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl,   $data) 

BaseStructure constructor.

Parameters

\ManiaControl\ManiaControl $maniaControl
$data