class WorkerStateConfigOffsetCollector implements Collector

Collects the assignments and unset() calls that set or unset an offset of the global configuration repository, such as config()['app.locale'] = 'fr', which change it like Repository::set(). Each is read with the scope at the write, wherever it sits, such as inside a return or an arrow function.

Methods

__construct(WorkerStateHelper $helper)

Create a new collector instance.

string
getNodeType()

Get the node type the collector inspects.

array|null
processNode(Node $node, Scope $scope)

Collect the node's config offset write.

Details

at line 32
__construct(WorkerStateHelper $helper)

Create a new collector instance.

Parameters

WorkerStateHelper $helper

at line 39
string getNodeType()

Get the node type the collector inspects.

Return Value

string

at line 50
array|null processNode(Node $node, Scope $scope)

Collect the node's config offset write.

Parameters

Node $node
Scope $scope

Return Value

array|null