public function DisableConstructorPatch::supports in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php \Prophecy\Doubler\ClassPatch\DisableConstructorPatch::supports()
Checks if class has `__construct` method.
Parameters
ClassNode $node:
Return value
bool
Overrides ClassPatchInterface::supports
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ DisableConstructorPatch.php, line 32
Class
- DisableConstructorPatch
- Disable constructor. Makes all constructor arguments optional.
Namespace
Prophecy\Doubler\ClassPatchCode
public function supports(ClassNode $node) {
return true;
}