class Method extends Object

Method or function description.

Methods

static Method
from($from)

No description

__construct($name = NULL)

No description

string
__toString()

No description

setName($name)

No description

string|null
getName()

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($statement, array $args = NULL)

No description

string
getBody()

No description

addBody($statement, array $args = NULL)

No description

setStatic($val)

No description

bool
isStatic()

No description

setVisibility($val)

No description

string|null
getVisibility()

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

setVariadic($val)

No description

bool
isVariadic()

No description

setComment($val)

No description

string|null
getComment()

No description

addComment($val)

No description

setDocuments(array $val)

No description

string[]
getDocuments()

No description

addDocument($val)

No description

setNamespace(PhpNamespace $val = NULL)

No description

setReturnType($val)

No description

string|null
getReturnType()

No description

Details

at line 61
static Method from($from)

No description

Parameters

$from

Return Value

Method

at line 95
__construct($name = NULL)

No description

Parameters

$name

at line 104
string __toString()

No description

Return Value

string

PHP code

at line 141
Method setName($name)

No description

Parameters

$name

Return Value

Method

at line 151
string|null getName()

No description

Return Value

string|null

at line 161
Method setParameters(array $val)

No description

Parameters

array $val

Return Value

Method

at line 177
Parameter[] getParameters()

No description

Return Value

Parameter[]

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

No description

Parameters

$name
$defaultValue

Return Value

Parameter

at line 200
Method setUses(array $val)

No description

Parameters

array $val

Return Value

Method

at line 210
array getUses()

No description

Return Value

array

at line 219
Parameter addUse($name)

No description

Parameters

$name

Return Value

Parameter

at line 228
Method setBody($statement, array $args = NULL)

No description

Parameters

$statement
array $args

Return Value

Method

at line 238
string getBody()

No description

Return Value

string

at line 247
Method addBody($statement, array $args = NULL)

No description

Parameters

$statement
array $args

Return Value

Method

at line 258
Method setStatic($val)

No description

Parameters

$val

Return Value

Method

at line 268
bool isStatic()

No description

Return Value

bool

at line 278
Method setVisibility($val)

No description

Parameters

$val

Return Value

Method

at line 291
string|null getVisibility()

No description

Return Value

string|null

at line 301
Method setFinal($val)

No description

Parameters

$val

Return Value

Method

at line 311
bool isFinal()

No description

Return Value

bool

at line 321
Method setAbstract($val)

No description

Parameters

$val

Return Value

Method

at line 331
bool isAbstract()

No description

Return Value

bool

at line 341
Method setReturnReference($val)

No description

Parameters

$val

Return Value

Method

at line 351
bool getReturnReference()

No description

Return Value

bool

at line 361
Method setVariadic($val)

No description

Parameters

$val

Return Value

Method

at line 371
bool isVariadic()

No description

Return Value

bool

at line 381
Method setComment($val)

No description

Parameters

$val

Return Value

Method

at line 391
string|null getComment()

No description

Return Value

string|null

at line 401
Method addComment($val)

No description

Parameters

$val

Return Value

Method

at line 411
Method setDocuments(array $val)

No description

Parameters

array $val

Return Value

Method

at line 421
string[] getDocuments()

No description

Return Value

string[]

at line 431
Method addDocument($val)

No description

Parameters

$val

Return Value

Method

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

No description

Parameters

PhpNamespace $val

Return Value

Method

at line 452
Method setReturnType($val)

No description

Parameters

$val

Return Value

Method

at line 462
string|null getReturnType()

No description

Return Value

string|null