ActionDescriptor
Immutable value object describing which action to execute.
Synopsis
Section titled “Synopsis”final class ActionDescriptor
| Source | Execution/ActionDescriptor.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$action | string | readonly. |
$isSimple | bool | readonly. |
$method | string | readonly. |
$module | string | readonly. |
$outputType | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $module, string $action, string $method, string $outputType, bool $isSimple): mixed
| Parameter | Type | Description |
|---|---|---|
$module | string | |
$action | string | |
$method | string | |
$outputType | string | |
$isSimple | bool |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
fromController(Controller $controller, string $module, string $action, string $method, string $outputType): ActionDescriptor | Build a descriptor by inspecting the action class (authoritative isSimple flag). |
fromController()
Section titled “fromController()”public static function fromController(Controller $controller, string $module, string $action, string $method, string $outputType): ActionDescriptor
Build a descriptor by inspecting the action class (authoritative isSimple flag).
The class is instantiated once per unique class name per worker lifetime; subsequent calls for the same module:action pair read from the static cache.
| Parameter | Type | Description |
|---|---|---|
$controller | Controller | |
$module | string | |
$action | string | |
$method | string | |
$outputType | string |
Returns ActionDescriptor