PHP Class phpmock\generator\ParameterBuilder

Author: Markus Malkusch ([email protected])
Show file Open project: php-mock/php-mock Class Usage Examples

Public Methods

Method Description
build ( string $functionName ) Builds the parameters for an existing function.
getBodyParameters ( ) : string Returns the body's parameter access list.
getSignatureParameters ( ) : string Returns the signature's parameters.

Private Methods

Method Description
isVariadic ( ReflectionParameter $parameter ) : boolean Returns whether a parameter is variadic.

Method Details

build() public method

Builds the parameters for an existing function.
public build ( string $functionName )
$functionName string The function name.

getBodyParameters() public method

Returns the body's parameter access list.
public getBodyParameters ( ) : string
return string The body's parameter list.

getSignatureParameters() public method

Returns the signature's parameters.
public getSignatureParameters ( ) : string
return string The signature's parameters.