final | |
|---|---|
extends |
NodeAbstract |
implements |
VirtualNode |
Virtual node emitted once for each type in a catch clause, whether or not
the try block can throw it - unlike CatchWithUnthrownExceptionNode, which is
emitted only for the dead ones. Rules analysing a trait need both outcomes
to tell whether a catch is dead in every class using it.
| Methods | ||
|---|---|---|
public
|
__construct(Catch_ $originalNode, Name $typeNode, Type $caughtType, Type $originalCaughtType, bool $thrown)
|
# |
public
|
getOriginalNode(): Catch_
|
# |
public
|
getTypeNode(): Name
|
# |
public
|
getCaughtType(): Type
|
# |
public
|
getOriginalCaughtType(): Type
|
# |
public
|
isThrown(): bool
|
# |
public
|
getType(): string
|
# |
public
|
getSubNodeNames(): string[]
|
# |
| Properties inherited from PhpParser\NodeAbstract |
|---|
$attributes |