Equals
in package
implements
MagicallyInvokedMethod
Interfaces, Classes, Traits and Enums
- MagicallyInvokedMethod
- MagicallyInvokedMethod is an interface for methods invoked with a little bit of magic
Table of Contents
- invoke() : mixed
- Invokes a method from an instance with the given parameters
- verifySignature() : bool
- Checks if the called method has the matching signature
Methods
invoke()
Invokes a method from an instance with the given parameters
public
invoke(object $instance, string $name[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
- $instance : object
-
Object on which the method will be invoked
- $name : string
-
Method name
- $arguments : array<string|int, mixed> = []
-
Method arguments
Tags
Return values
mixed —The return varies according to the invoked method
verifySignature()
Checks if the called method has the matching signature
public
verifySignature(string $name[, array<string|int, mixed> $arguments = [] ]) : bool
Parameters
- $name : string
-
Method name
- $arguments : array<string|int, mixed> = []
-
Method arguments
Tags
Return values
bool —The called method has the matching signature or not