trait FunctionLike

internal  
 

Methods

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

No description

string
getBody()

No description

addBody(string $code, array $args = null)

No description

setParameters(array $val)

No description

array
getParameters()

No description

addParameter(string $name, $defaultValue = null)

No description

removeParameter(string $name)

No description

setVariadic(bool $state = true)

No description

bool
isVariadic()

No description

setReturnType(string|null $val)

No description

string|null
getReturnType()

No description

setReturnReference(bool $state = true)

No description

bool
getReturnReference()

No description

setReturnNullable(bool $state = true)

No description

bool
getReturnNullable()

No description

setNamespace(PhpNamespace $val = null) deprecated

No description

Details

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

No description

Parameters

string $code
array $args

Return Value

FunctionLike

at line 51
string getBody()

No description

Return Value

string

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

No description

Parameters

string $code
array $args

Return Value

FunctionLike

at line 71
FunctionLike setParameters(array $val)

No description

Parameters

array $val

Return Value

FunctionLike

at line 87
array getParameters()

No description

Return Value

array

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

No description

Parameters

string $name

without $

$defaultValue

Return Value

Parameter

at line 110
FunctionLike removeParameter(string $name)

No description

Parameters

string $name

without $

Return Value

FunctionLike

at line 120
FunctionLike setVariadic(bool $state = true)

No description

Parameters

bool $state

Return Value

FunctionLike

at line 127
bool isVariadic()

No description

Return Value

bool

at line 136
FunctionLike setReturnType(string|null $val)

No description

Parameters

string|null $val

Return Value

FunctionLike

at line 143
string|null getReturnType()

No description

Return Value

string|null

at line 152
FunctionLike setReturnReference(bool $state = true)

No description

Parameters

bool $state

Return Value

FunctionLike

at line 159
bool getReturnReference()

No description

Return Value

bool

at line 168
FunctionLike setReturnNullable(bool $state = true)

No description

Parameters

bool $state

Return Value

FunctionLike

at line 175
bool getReturnNullable()

No description

Return Value

bool

at line 184
FunctionLike setNamespace(PhpNamespace $val = null) deprecated

deprecated

No description

Parameters

PhpNamespace $val

Return Value

FunctionLike