final class Action

A class to represent a callable Action assigned to a Timer and all of it's properties.

Properties

callable $action
array $callable_args
string $id

Methods

__construct(string $action_id, array $action)

Construct this action using the provided and default arguments.

mixed
do()

Do the action callable. Do the roar.

array
to_array()

Return the action as an associative array.

Details

at line 46
__construct(string $action_id, array $action)

Construct this action using the provided and default arguments.

Parameters

string $action_id
array $action

at line 72
final mixed do()

Do the action callable. Do the roar.

Return Value

mixed

Returns the result of the function called.

at line 83
final array to_array()

Return the action as an associative array.

Return Value

array

This action represented as an associative array.