trait FunctionLike

internal  
 

Methods

setBody($code, array $args = null)

No description

string
getBody()

No description

addBody($code, array $args = null)

No description

setParameters(array $val)

No description

getParameters()

No description

addParameter($name, $defaultValue = null)

No description

setVariadic($state = true)

No description

bool
isVariadic()

No description

setReturnType($val)

No description

string|null
getReturnType()

No description

setReturnReference($state = true)

No description

bool
getReturnReference()

No description

setReturnNullable($state = true)

No description

bool
getReturnNullable()

No description

setNamespace(PhpNamespace $val = null)

No description

string
parametersToString()

No description

string
returnTypeToString()

No description

Details

at line 47
FunctionLike setBody($code, array $args = null)

No description

Parameters

$code
array $args

Return Value

FunctionLike

at line 57
string getBody()

No description

Return Value

string

at line 67
FunctionLike addBody($code, array $args = null)

No description

Parameters

$code
array $args

Return Value

FunctionLike

at line 78
FunctionLike setParameters(array $val)

No description

Parameters

array $val

Return Value

FunctionLike

at line 94
Parameter[] getParameters()

No description

Return Value

Parameter[]

at line 104
Parameter addParameter($name, $defaultValue = null)

No description

Parameters

$name
$defaultValue

Return Value

Parameter

at line 118
FunctionLike setVariadic($state = true)

No description

Parameters

$state

Return Value

FunctionLike

at line 128
bool isVariadic()

No description

Return Value

bool

at line 138
FunctionLike setReturnType($val)

No description

Parameters

$val

Return Value

FunctionLike

at line 148
string|null getReturnType()

No description

Return Value

string|null

at line 158
FunctionLike setReturnReference($state = true)

No description

Parameters

$state

Return Value

FunctionLike

at line 168
bool getReturnReference()

No description

Return Value

bool

at line 178
FunctionLike setReturnNullable($state = true)

No description

Parameters

$state

Return Value

FunctionLike

at line 188
bool getReturnNullable()

No description

Return Value

bool

at line 197
FunctionLike setNamespace(PhpNamespace $val = null)

No description

Parameters

PhpNamespace $val

Return Value

FunctionLike

at line 207
protected string parametersToString()

No description

Return Value

string

at line 229
protected string returnTypeToString()

No description

Return Value

string