ClassPatchInterface
in
Class patch interface.
Class patches extend doubles functionality or help Prophecy to avoid some internal PHP bugs.
Tags
Table of Contents
- apply() : void
- Applies patch to the specific class node.
- getPriority() : int
- Returns patch priority, which determines when patch will be applied.
- supports() : bool
- Checks if patch supports specific class node.
Methods
apply()
Applies patch to the specific class node.
public
apply(ClassNode $node) : void
Parameters
- $node : ClassNode
Return values
void —getPriority()
Returns patch priority, which determines when patch will be applied.
public
getPriority() : int
Return values
int —Priority number (higher - earlier)
supports()
Checks if patch supports specific class node.
public
supports(ClassNode $node) : bool
Parameters
- $node : ClassNode