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

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 $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

setNamespace(PhpNamespace|null $val = null) deprecated

No description

Details

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

No description

Parameters

string $code
array|null $args

Return Value

FunctionLike

at line 52
string getBody()

No description

Return Value

string

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

No description

Parameters

string $code
array|null $args

Return Value

FunctionLike

at line 70
FunctionLike setParameters(array $val)

No description

Parameters

array $val

Return Value

FunctionLike

at line 83
array getParameters()

No description

Return Value

array

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

No description

Parameters

string $name

without $

$defaultValue

Return Value

Parameter

at line 107
FunctionLike removeParameter(string $name)

No description

Parameters

string $name

without $

Return Value

FunctionLike

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 122
bool isVariadic()

No description

Return Value

bool

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

No description

Parameters

string|null $type

Return Value

FunctionLike

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

No description

Parameters

bool $asObject

Return Value

Type|string|null

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 155
bool getReturnReference()

No description

Return Value

bool

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 169
bool isReturnNullable()

No description

Return Value

bool

at line 176
bool getReturnNullable() deprecated

deprecated use isReturnNullable()

No description

Return Value

bool

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

deprecated

No description

Parameters

PhpNamespace|null $val

Return Value

FunctionLike