trait FunctionLike

internal  
 

Methods

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

No description

string
getBody()

No description

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

No description

setParameters(array $val)

No description

array
getParameters()

No description

getParameter(string $name)

No description

addParameter(string $name, mixed $defaultValue = null)

No description

removeParameter(string $name)

No description

bool
hasParameter(string $name)

No description

setVariadic(bool $state = true)

No description

bool
isVariadic()

No description

setReturnType(string|null $type)

No description

Type|string|null
getReturnType(bool $asObject = false)

No description

setReturnReference(bool $state = true)

No description

bool
getReturnReference()

No description

setReturnNullable(bool $state = true)

No description

bool
isReturnNullable()

No description

bool
getReturnNullable() deprecated

No description

Details

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

No description

Parameters

string $code
array|null $args

Return Value

FunctionLike

at line 48
string getBody()

No description

Return Value

string

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

No description

Parameters

string $code
array|null $args

Return Value

FunctionLike

at line 69
FunctionLike setParameters(array $val)

No description

Parameters

array $val

Return Value

FunctionLike

at line 82
array getParameters()

No description

Return Value

array

at line 88
Parameter getParameter(string $name)

No description

Parameters

string $name

Return Value

Parameter

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

No description

Parameters

string $name

without $

mixed $defaultValue

Return Value

Parameter

at line 111
FunctionLike removeParameter(string $name)

No description

Parameters

string $name

without $

Return Value

FunctionLike

at line 118
bool hasParameter(string $name)

No description

Parameters

string $name

Return Value

bool

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 131
bool isVariadic()

No description

Return Value

bool

at line 137
FunctionLike setReturnType(string|null $type)

No description

Parameters

string|null $type

Return Value

FunctionLike

at line 145
Type|string|null getReturnType(bool $asObject = false)

No description

Parameters

bool $asObject

Return Value

Type|string|null

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 160
bool getReturnReference()

No description

Return Value

bool

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 173
bool isReturnNullable()

No description

Return Value

bool

at line 180
bool getReturnNullable() deprecated

deprecated use isReturnNullable()

No description

Return Value

bool