\FML\ScriptScriptConstant

Class representing a Constant of the ManiaLink Script

Summary

Methods
Properties
Constants
__construct()
getName()
setName()
getValue()
setValue()
__toString()
No public properties found
No constants found
No protected methods found
$name
$value
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Type

string — Name

$value

$value : mixed

Type

mixed — Value

Methods

__construct()

__construct(string  $name = null, mixed  $value = null) 

Construct a new Script Constant

Parameters

string $name

(optional) Constant name

mixed $value

(optional) Constant value

getName()

getName() : string

Get the name

Returns

string

setName()

setName(string  $name) : static

Set the name

Parameters

string $name

Constant name

Returns

static

getValue()

getValue() : mixed

Get the value

Returns

mixed

setValue()

setValue(mixed  $value) : static

Set the value

Parameters

mixed $value

Constant value

Returns

static

__toString()

__toString() : string

Build the Script Constant text

Returns

string