You are here

public function DisableConstructorPatch::supports in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\ClassPatch

Code

public function supports(ClassNode $node) {
  return true;
}