KeywordPatch
in package
implements
ClassPatchInterface
Remove method functionality from the double which will clash with php keywords.
Tags
Interfaces, Classes, Traits and Enums
- ClassPatchInterface
- Class patch interface.
Table of Contents
- apply() : void
- Remove methods that clash with php keywords
- getPriority() : int
- Returns patch priority, which determines when patch will be applied.
- supports() : bool
- Support any class
- getKeywords() : array<string|int, mixed>
- Returns array of php keywords.
Methods
apply()
Remove methods that clash with php keywords
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()
Support any class
public
supports(ClassNode $node) : bool
Parameters
- $node : ClassNode
Return values
bool —getKeywords()
Returns array of php keywords.
private
getKeywords() : array<string|int, mixed>