class Method extends Member

Method or function description.

Properties

string $body

Methods

static Method
from($from)

No description

__construct($name = NULL)

No description

string
__toString()

No description

setParameters(array $val)

No description

getParameters()

No description

addParameter($name, $defaultValue = NULL)

No description

setUses(array $val)

No description

array
getUses()

No description

addUse($name)

No description

setBody($code, array $args = NULL)

No description

string
getBody()

No description

addBody($code, array $args = NULL)

No description

setStatic($val)

No description

bool
isStatic()

No description

setFinal($val)

No description

bool
isFinal()

No description

setAbstract($val)

No description

bool
isAbstract()

No description

setReturnReference($val)

No description

bool
getReturnReference()

No description

setReturnNullable($val)

No description

bool
getReturnNullable()

No description

setVariadic($val)

No description

bool
isVariadic()

No description

setNamespace(PhpNamespace $val = NULL)

No description

setReturnType($val)

No description

string|null
getReturnType()

No description

Details

at line 57
static Method from($from)

No description

Parameters

$from

Return Value

Method

at line 68
__construct($name = NULL)

No description

Parameters

$name

at line 77
string __toString()

No description

Return Value

string

PHP code

at line 115
Method setParameters(array $val)

No description

Parameters

array $val

Return Value

Method

at line 131
Parameter[] getParameters()

No description

Return Value

Parameter[]

at line 141
Parameter addParameter($name, $defaultValue = NULL)

No description

Parameters

$name
$defaultValue

Return Value

Parameter

at line 154
Method setUses(array $val)

No description

Parameters

array $val

Return Value

Method

at line 164
array getUses()

No description

Return Value

array

at line 173
Parameter addUse($name)

No description

Parameters

$name

Return Value

Parameter

at line 182
Method setBody($code, array $args = NULL)

No description

Parameters

$code
array $args

Return Value

Method

at line 192
string getBody()

No description

Return Value

string

at line 201
Method addBody($code, array $args = NULL)

No description

Parameters

$code
array $args

Return Value

Method

at line 212
Method setStatic($val)

No description

Parameters

$val

Return Value

Method

at line 222
bool isStatic()

No description

Return Value

bool

at line 232
Method setFinal($val)

No description

Parameters

$val

Return Value

Method

at line 242
bool isFinal()

No description

Return Value

bool

at line 252
Method setAbstract($val)

No description

Parameters

$val

Return Value

Method

at line 262
bool isAbstract()

No description

Return Value

bool

at line 272
Method setReturnReference($val)

No description

Parameters

$val

Return Value

Method

at line 282
bool getReturnReference()

No description

Return Value

bool

at line 292
Method setReturnNullable($val)

No description

Parameters

$val

Return Value

Method

at line 302
bool getReturnNullable()

No description

Return Value

bool

at line 312
Method setVariadic($val)

No description

Parameters

$val

Return Value

Method

at line 322
bool isVariadic()

No description

Return Value

bool

at line 331
Method setNamespace(PhpNamespace $val = NULL)

No description

Parameters

PhpNamespace $val

Return Value

Method

at line 342
Method setReturnType($val)

No description

Parameters

$val

Return Value

Method

at line 352
string|null getReturnType()

No description

Return Value

string|null