MagicCallPatch
in package
implements
ClassPatchInterface
Discover Magical API using "@method" PHPDoc format.
Tags
Interfaces, Classes, Traits and Enums
- ClassPatchInterface
- Class patch interface.
Table of Contents
- MAGIC_METHODS_WITH_ARGUMENTS = ['__call', '__callStatic', '__get', '__isset', '__set', '__set_state', '__unserialize', '__unset']
- $tagRetriever : mixed
- __construct() : mixed
- apply() : void
- Discover Magical API
- getPriority() : int
- Returns patch priority, which determines when patch will be applied.
- supports() : bool
- Support any class
Constants
MAGIC_METHODS_WITH_ARGUMENTS
public
mixed
MAGIC_METHODS_WITH_ARGUMENTS
= ['__call', '__callStatic', '__get', '__isset', '__set', '__set_state', '__unserialize', '__unset']
Properties
$tagRetriever
private
mixed
$tagRetriever
Methods
__construct()
public
__construct([MethodTagRetrieverInterface $tagRetriever = null ]) : mixed
Parameters
- $tagRetriever : MethodTagRetrieverInterface = null
Return values
mixed —apply()
Discover Magical API
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