NoLegacyQueuePropertiesRule
class NoLegacyQueuePropertiesRule implements Rule
Recommend queue attributes over the configuration properties they replace, which remain supported.
A declaration is reported only where the object's dispatch path reads the attribute, and only when removing it, or replacing it with the attribute, leaves the setting the path reads unchanged, given the class's current parents and attributes. Only public properties are read by the queue, so others are not reported.
Constants
| private ATTRIBUTES |
The attribute each setting's property maps to, with the parameter holding its value. |
| private SETTERS |
The Queueable methods that change each setting when the constructor calls them. |
Methods
Get the node type the rule checks.
Report the queue configuration properties that attributes can replace or that can be removed.
Details
at line 95
__construct(LegacyPropertyHelper $helper)
Create a new no legacy queue properties rule instance.
at line 103
string
getNodeType()
Get the node type the rule checks.
at line 113
array
processNode(Node $node, Scope $scope)
Report the queue configuration properties that attributes can replace or that can be removed.