class SwooleTableInProviderRule implements Rule

internal  
 

Reports a Swoole table created directly in a service provider's register() or boot().

Every process that boots the application runs those methods, so each one would allocate the table. Closures registered there, such as singleton factories and listeners, run later.

Methods

__construct(ReflectionProvider $reflectionProvider)

Create a new Swoole table in provider rule instance.

string
getNodeType()

Get the node type the rule checks.

array
processNode(Node $node, Scope $scope)

Report a table created in a provider's register() or boot() body.

Details

at line 40
__construct(ReflectionProvider $reflectionProvider)

Create a new Swoole table in provider rule instance.

Parameters

ReflectionProvider $reflectionProvider

at line 48
string getNodeType()

Get the node type the rule checks.

Return Value

string

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

Report a table created in a provider's register() or boot() body.

Parameters

Node $node
Scope $scope

Return Value

array