function ThrowablePatch::setParentClassToException
1 call to ThrowablePatch::setParentClassToException()
- ThrowablePatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ThrowablePatch.php - Applies patch to the specific class node.
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ThrowablePatch.php, line 72
Class
Namespace
Prophecy\Doubler\ClassPatchCode
private function setParentClassToException(ClassNode $node) : void {
$node->setParentClass('Exception');
$node->removeMethod('getMessage');
$node->removeMethod('getCode');
$node->removeMethod('getFile');
$node->removeMethod('getLine');
$node->removeMethod('getTrace');
$node->removeMethod('getPrevious');
$node->removeMethod('getNext');
$node->removeMethod('getTraceAsString');
}