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

Breadcrumb

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

function ClassPatchInterface::apply

Applies patch to the specific class node.

Parameters

ClassNode $node:

Return value

void

8 methods override ClassPatchInterface::apply()
DisableConstructorPatch::apply in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php
Makes all class constructor arguments optional.
KeywordPatch::apply in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php
Remove methods that clash with php keywords
MagicCallPatch::apply in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php
Discover Magical API
ProphecySubjectPatch::apply in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php
Apply Prophecy functionality to class node.
ReflectionClassNewInstancePatch::apply in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php
Updates newInstance's first argument to make it optional

... See full list

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php, line 40

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 apply(ClassNode $node);

API Navigation

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