\ManiaControl\ScriptInvokeScriptCallback

Class For Invoking Callbacks on Script Methods

Summary

Methods
Properties
Constants
getUsageInformation()
__construct()
setCallable()
setCallableMethod()
getResponseId()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$maniaControl
$callbackName
$responseId
N/A

Properties

$callbackName

$callbackName : 

Type

$responseId

$responseId : 

Type

Methods

getUsageInformation()

getUsageInformation() 

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

__construct()

__construct(  $maniaControl,   $callbackName,   $responseId) 

InvokeScriptCallback constructor.

Parameters

$maniaControl
$callbackName
$responseId

setCallable()

setCallable(callable  $function) 

Sets a Callable to be called back with the Information

Parameters

callable $function

async Function to Call back

setCallableMethod()

setCallableMethod(\ManiaControl\Callbacks\CallbackListener  $callbackListener,   $methodName) 

You can set a Method in your Class to be called with this Variant

Parameters

\ManiaControl\Callbacks\CallbackListener $callbackListener
$methodName

getResponseId()

getResponseId() : mixed

Returns the Generated ResponseId

Returns

mixed