class RestrictedCallRule implements Rule

internal  
 

Reports calls to methods marked as boot-time or test-only from code that runs while handling a request, job or operation.

A worker-shared restriction is reported only with evidence that the receiver is the instance the booted container shares, so the calls are judged here, against the booted lifetimes.

Methods

__construct(WorkerStateHelper $helper)

Create a new restricted call rule instance.

string
getNodeType()

Get the node type the rule inspects.

array
processNode(Node $node, Scope $scope)

Report the collected restricted calls that run in a request, job or operation.

Details

at line 43
__construct(WorkerStateHelper $helper)

Create a new restricted call rule instance.

Parameters

WorkerStateHelper $helper

at line 51
string getNodeType()

Get the node type the rule inspects.

Return Value

string

at line 64
array processNode(Node $node, Scope $scope)

Report the collected restricted calls that run in a request, job or operation.

Parameters

Node $node
Scope $scope

Return Value

array