class Method

Class method.

Traits

Strict class for better experience.

Properties

string|null $body

Methods

static Method
from(string|array $method)

No description

string
__toString()

No description

setBody(string|null $code, array $args = null)

No description

string|null
getBody()

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

void
validate()

No description

Details

at line 45
static Method from(string|array $method)

Parameters

string|array $method

Return Value

Method

at line 51
string __toString()

Return Value

string

at line 64
Method setBody(string|null $code, array $args = null)

Parameters

string|null $code
array $args

Return Value

Method

at line 71
string|null getBody()

Return Value

string|null

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

Parameters

bool $state

Return Value

Method

at line 87
bool isStatic()

Return Value

bool

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

Parameters

bool $state

Return Value

Method

at line 103
bool isFinal()

Return Value

bool

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

Parameters

bool $state

Return Value

Method

at line 119
bool isAbstract()

Return Value

bool

at line 128
void validate()

Return Value

void

Exceptions

InvalidStateException