function ClassPatchInterface::apply
Applies patch to the specific class node.
Parameters
ClassNode $node:
Return value
void
8 methods override ClassPatchInterface::apply()
- DisableConstructorPatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ DisableConstructorPatch.php - Makes all class constructor arguments optional.
- KeywordPatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ KeywordPatch.php - Remove methods that clash with php keywords
- MagicCallPatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ MagicCallPatch.php - Discover Magical API
- ProphecySubjectPatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ProphecySubjectPatch.php - Apply Prophecy functionality to class node.
- ReflectionClassNewInstancePatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ReflectionClassNewInstancePatch.php - Updates newInstance's first argument to make it optional
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ClassPatchInterface.php, line 40
Class
- ClassPatchInterface
- Class patch interface. Class patches extend doubles functionality or help Prophecy to avoid some internal PHP bugs.
Namespace
Prophecy\Doubler\ClassPatchCode
public function apply(ClassNode $node);