You are here

public function ClassPatchInterface::supports in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php \Prophecy\Doubler\ClassPatch\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.
HhvmExceptionPatch::supports in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php
Supports exceptions on HHVM.
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.

... See full list

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\ClassPatch

Code

public function supports(ClassNode $node);