function ClassPatchInterface::supports
Checks if patch supports specific class node.
Parameters
ClassNode $node:
Return value
bool
8 methods override ClassPatchInterface::supports()
- DisableConstructorPatch::supports in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ DisableConstructorPatch.php - Checks if class has `__construct` method.
- KeywordPatch::supports in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ KeywordPatch.php - Support any class
- MagicCallPatch::supports in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ MagicCallPatch.php - Support any class
- ProphecySubjectPatch::supports in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ProphecySubjectPatch.php - Always returns true.
- ReflectionClassNewInstancePatch::supports in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ReflectionClassNewInstancePatch.php - Supports ReflectionClass
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ ClassPatchInterface.php, line 32
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 supports(ClassNode $node);