\Pop\Code\Generator\TraitsFunctionTrait

Function trait

Summary

Methods
Properties
Constants
addArgument()
addArguments()
hasArgument()
hasArguments()
getArgument()
getArguments()
addParameter()
addParameters()
hasParameter()
hasParameters()
getParameter()
getParameters()
No public properties found
No constants found
formatArguments()
$arguments
N/A
No private methods found
No private properties found
N/A

Properties

$arguments

$arguments : array

Arguments

Type

array

Methods

addArgument()

addArgument(string  $name, mixed  $value = null, string  $type = null) : \Pop\Code\Generator\Traits\FunctionTrait

Add an argument

Parameters

string $name
mixed $value
string $type

Returns

\Pop\Code\Generator\Traits\FunctionTrait

hasArgument()

hasArgument(string  $name) : boolean

Has an argument

Parameters

string $name

Returns

boolean

hasArguments()

hasArguments() : boolean

Has arguments

Returns

boolean

getArgument()

getArgument(string  $name) : array

Get an argument

Parameters

string $name

Returns

array

getArguments()

getArguments() : array

Get the arguments

Returns

array

addParameter()

addParameter(string  $name, mixed  $value = null, string  $type = null) : \Pop\Code\Generator\Traits\FunctionTrait

Add an argument (alias method for convenience)

Parameters

string $name
mixed $value
string $type

Returns

\Pop\Code\Generator\Traits\FunctionTrait

addParameters()

addParameters(array  $args) : \Pop\Code\Generator\Traits\FunctionTrait

Add arguments (alias method for convenience)

Parameters

array $args

Returns

\Pop\Code\Generator\Traits\FunctionTrait

hasParameter()

hasParameter(string  $name) : boolean

Has an argument (alias method for convenience)

Parameters

string $name

Returns

boolean

hasParameters()

hasParameters() : boolean

Has arguments (alias method for convenience)

Returns

boolean

getParameter()

getParameter(string  $name) : array

Get an argument (alias method for convenience)

Parameters

string $name

Returns

array

getParameters()

getParameters() : array

Get the arguments (alias method for convenience)

Returns

array

formatArguments()

formatArguments() : string

Format the arguments

Returns

string