final | |
|---|---|
extends |
NodeAbstract |
implements |
VirtualNode |
Virtual node emitted once per switch statement. It pairs the switch subject
with each non-default case condition so rules can inspect the loose ==
comparison the switch performs, using the scope captured at each case
(which already excludes the values matched by earlier cases).
| Methods | ||
|---|---|---|
public
|
__construct(Expr $subject, SwitchConditionArm[] $arms, Switch_ $originalNode)
|
# |
public
|
getSubject(): Expr
|
# |
public
|
getArms(): SwitchConditionArm[]
|
# |
public
|
getType(): string
|
# |
public
|
getSubNodeNames(): string[]
|
# |
| Properties inherited from PhpParser\NodeAbstract |
|---|
$attributes |