AllArgsConstructor
extends Constructor
in package
Table of Contents
- $allArgs : bool
- $noArgs : bool
- __construct() : mixed
- invoke() : mixed
- Invokes a method from an instance with the given parameters
- verifySignature() : bool
- Checks if the called method has the matching signature
Properties
$allArgs
private
bool
$allArgs
Define a constructor method with all attributes
$noArgs
private
bool
$noArgs
Define a constructor method without any attributes
Methods
__construct()
public
__construct() : mixed
Return values
mixed —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