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

setStatic(bool $state = true)

No description

bool
isStatic()

No description

setFinal(bool $state = true)

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.

Parameters

string|array|Closure $method

Return Value

Method

at line 42
string __toString()

No description

Return Value

string

at line 48
Method setStatic(bool $state = true)

No description

Parameters

bool $state

Return Value

Method

at line 55
bool isStatic()

No description

Return Value

bool

at line 61
Method setFinal(bool $state = true)

No description

Parameters

bool $state

Return Value

Method

at line 68
bool isFinal()

No description

Return Value

bool

at line 74
Method setAbstract(bool $state = true)

No description

Parameters

bool $state

Return Value

Method

at line 81
bool isAbstract()

No description

Return Value

bool

at line 91
PromotedParameter addPromotedParameter(string $name, mixed $defaultValue = null)

Adds a constructor-promoted parameter. If it already exists, overwrites it.

Parameters

string $name

without $

mixed $defaultValue

Return Value

PromotedParameter

at line 103
void validate()

No description

Return Value

void

Exceptions

InvalidStateException

at line 111
void __clone()

No description

Return Value

void

Traits