Bristol SU Support Package
|
Public Member Functions | |
setName (string $name) | |
getName () | |
setDescription (string $description) | |
getDescription () | |
setClassName (string $className) | |
getClassName () | |
toArray () | |
toJson ($options=0) | |
Static Public Member Functions | |
static | fromArray (array $parameters) |
Class to set and access action metadata.
Definition at line 8 of file RegisteredAction.php.
|
static |
Create a RegisteredAction instance from a raw metadata array.
Creates a RegisteredAction instance from an array of the form [ 'name' => 'Action Name', 'description' => 'Action Description', 'class' => 'ClassName' ]
array | $parameters | The raw metadata of the action |
Implemented in BristolSU\Support\Action\RegisteredAction.
BristolSU\Support\Action\Contracts\RegisteredAction::getClassName | ( | ) |
Get the class name of the action
Implemented in BristolSU\Support\Action\RegisteredAction.
BristolSU\Support\Action\Contracts\RegisteredAction::getDescription | ( | ) |
BristolSU\Support\Action\Contracts\RegisteredAction::getName | ( | ) |
BristolSU\Support\Action\Contracts\RegisteredAction::setClassName | ( | string | $className | ) |
Set the class name of the action.
string | $className | Class of the action |
Implemented in BristolSU\Support\Action\RegisteredAction.
BristolSU\Support\Action\Contracts\RegisteredAction::setDescription | ( | string | $description | ) |
Set the description of the action.
string | $description | Description of the action |
Implemented in BristolSU\Support\Action\RegisteredAction.
BristolSU\Support\Action\Contracts\RegisteredAction::setName | ( | string | $name | ) |
Set the name of the action.
string | $name | Name of the action |
Implemented in BristolSU\Support\Action\RegisteredAction.
BristolSU\Support\Action\Contracts\RegisteredAction::toArray | ( | ) |
Transform the action to an array
Implemented in BristolSU\Support\Action\RegisteredAction.
BristolSU\Support\Action\Contracts\RegisteredAction::toJson | ( | $options = 0 | ) |
Transform the action to json
int | $options |
Implemented in BristolSU\Support\Action\RegisteredAction.