BooleanInTernaryOperatorRule
in package
implements
Rule
Interfaces, Classes, Traits and Enums
- Rule
Table of Contents
- $helper : BooleanRuleHelper
- __construct() : mixed
- getNodeType() : string
- processNode() : array<string|int, string>
Properties
$helper
private
BooleanRuleHelper
$helper
Methods
__construct()
public
__construct(BooleanRuleHelper $helper) : mixed
Parameters
- $helper : BooleanRuleHelper
Return values
mixed —getNodeType()
public
getNodeType() : string
Return values
string —processNode()
public
processNode(Ternary $node, Scope $scope) : array<string|int, string>
Parameters
- $node : Ternary
- $scope : Scope
Return values
array<string|int, string> —errors