Skip to content
PHP Ecosystem
Explore

ExternalActionConfiguration

API reference › PHPStan › rules › ExternalActionConfiguration

final readonly classyii2\extensions\phpstan\rules\ExternalActionConfiguration
Sourcesrc/rules/ExternalActionConfiguration.php

Represents an external action definition of Controller::actions() whose class and assignment path are proven.

ExternalActionConfigurationResolver for the conditions under which a definition is resolved.

PropertyTypeDescriptionDefined by
$actionId readonly constructorstringAction ID that maps to the definition.ExternalActionConfiguration
$configuration readonly constructorCreateObjectConfigurationConfiguration that Yii::createObject() receives from Controller::createAction().ExternalActionConfiguration
$controllerClass readonly constructorstringController whose actions() returns the definition, as PHPStan displays it.ExternalActionConfiguration
MethodDescriptionDefined by
__construct()Stores the controller, action ID and resolved action configuration.ExternalActionConfiguration
public function __construct(string $controllerClass, string $actionId, yii2\extensions\phpstan\rules\CreateObjectConfiguration $configuration)

Stores the controller, action ID and resolved action configuration.

Parameters

ParameterTypeDescription
$controllerClassstringController whose actions() returns the definition, as PHPStan displays it.
$actionIdstringAction ID that maps to the definition.
$configurationCreateObjectConfigurationConfiguration that Yii::createObject() receives from Controller::createAction().