ExternalActionConfiguration
API reference › PHPStan › rules › ExternalActionConfiguration
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.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$actionId readonly constructor | string | Action ID that maps to the definition. | ExternalActionConfiguration |
$configuration readonly constructor | CreateObjectConfiguration | Configuration that Yii::createObject() receives from Controller::createAction(). | ExternalActionConfiguration |
$controllerClass readonly constructor | string | Controller whose actions() returns the definition, as PHPStan displays it. | ExternalActionConfiguration |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Stores the controller, action ID and resolved action configuration. | ExternalActionConfiguration |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $controllerClass, string $actionId, yii2\extensions\phpstan\rules\CreateObjectConfiguration $configuration)Stores the controller, action ID and resolved action configuration.
Parameters
| Parameter | Type | Description |
|---|---|---|
$controllerClass | string | Controller whose actions() returns the definition, as PHPStan displays it. |
$actionId | string | Action ID that maps to the definition. |
$configuration | CreateObjectConfiguration | Configuration that Yii::createObject() receives from Controller::createAction(). |