Skip to content

ActionDescriptor

Immutable value object describing which action to execute.

final class ActionDescriptor

SourceExecution/ActionDescriptor.php
PropertyTypeDescription
$actionstringreadonly.
$isSimpleboolreadonly.
$methodstringreadonly.
$modulestringreadonly.
$outputTypestringreadonly.

public function __construct(string $module, string $action, string $method, string $outputType, bool $isSimple): mixed

ParameterTypeDescription
$modulestring
$actionstring
$methodstring
$outputTypestring
$isSimplebool

Returns mixed

MethodDescription
fromController(Controller $controller, string $module, string $action, string $method, string $outputType): ActionDescriptorBuild a descriptor by inspecting the action class (authoritative isSimple flag).

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.

ParameterTypeDescription
$controllerController
$modulestring
$actionstring
$methodstring
$outputTypestring

Returns ActionDescriptor