Method
final class Method
Definition of a class method.
Constants
| Constructor |
|
Methods
static Method
from(string|array|Closure $method)
Creates an instance from a method name, callable array, or closure reflection.
string
__toString()
No description
bool
isStatic()
No description
bool
isFinal()
No description
setAbstract(bool $state = true)
No description
bool
isAbstract()
No description
addPromotedParameter(string $name, mixed $defaultValue = null)
Adds a constructor-promoted parameter. If it already exists, overwrites it.
void
validate()
No description
void
__clone()
No description
Details
at line 36
static Method
from(string|array|Closure $method)
Creates an instance from a method name, callable array, or closure reflection.
at line 42
string
__toString()
No description
at line 48
Method
setStatic(bool $state = true)
No description
at line 55
bool
isStatic()
No description
at line 61
Method
setFinal(bool $state = true)
No description
at line 68
bool
isFinal()
No description
at line 74
Method
setAbstract(bool $state = true)
No description
at line 81
bool
isAbstract()
No description
at line 91
PromotedParameter
addPromotedParameter(string $name, mixed $defaultValue = null)
Adds a constructor-promoted parameter. If it already exists, overwrites it.
at line 103
void
validate()
No description
at line 111
void
__clone()
No description