Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ClassPatchInterface.php

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

... 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal