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

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)

No description

string
parametersToString()

No description

string
returnTypeToString()

No description

Details

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

No description

Parameters

string $code
array $args

Return Value

FunctionLike

at line 55
string getBody()

No description

Return Value

string

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

No description

Parameters

string $code
array $args

Return Value

FunctionLike

at line 75
FunctionLike setParameters(array $val)

No description

Parameters

array $val

Return Value

FunctionLike

at line 91
array getParameters()

No description

Return Value

array

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

No description

Parameters

string $name

without $

$defaultValue

Return Value

Parameter

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 120
bool isVariadic()

No description

Return Value

bool

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

No description

Parameters

string|null $val

Return Value

FunctionLike

at line 140
string|null getReturnType()

No description

Return Value

string|null

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 156
bool getReturnReference()

No description

Return Value

bool

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

No description

Parameters

bool $state

Return Value

FunctionLike

at line 172
bool getReturnNullable()

No description

Return Value

bool

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

No description

Parameters

PhpNamespace $val

Return Value

FunctionLike

at line 188
protected string parametersToString()

No description

Return Value

string

at line 207
protected string returnTypeToString()

No description

Return Value

string