ThrowablePatch
in package
implements
ClassPatchInterface
Interfaces, Classes and Traits
- ClassPatchInterface
- Class patch interface.
Table of Contents
- apply() : void
- Applies patch to the specific class node.
- getPriority() : int
- Returns patch priority, which determines when patch will be applied.
- supports() : bool
- Checks if patch supports specific class node.
- checkItCanBeDoubled() : mixed
- doesNotExtendAThrowableClass() : bool
- implementsAThrowableInterface() : bool
- setParentClassToException() : mixed
Methods
apply()
Applies patch to the specific class node.
public
apply(ClassNode $node) : void
Parameters
- $node : ClassNode
Return values
void —getPriority()
Returns patch priority, which determines when patch will be applied.
public
getPriority() : int
Return values
int —Priority number (higher - earlier)
supports()
Checks if patch supports specific class node.
public
supports(ClassNode $node) : bool
Parameters
- $node : ClassNode
Return values
bool —checkItCanBeDoubled()
private
checkItCanBeDoubled(ClassNode $node) : mixed
Parameters
- $node : ClassNode
Return values
mixed —doesNotExtendAThrowableClass()
private
doesNotExtendAThrowableClass(ClassNode $node) : bool
Parameters
- $node : ClassNode
Return values
bool —implementsAThrowableInterface()
private
implementsAThrowableInterface(ClassNode $node) : bool
Parameters
- $node : ClassNode
Return values
bool —setParentClassToException()
private
setParentClassToException(ClassNode $node) : mixed
Parameters
- $node : ClassNode