PHP Class Webiny\Component\Rest\Response\RequestBag

Mainly used so we don't type constructors and function calls with 5-6 parameters...this makes it nicer and more practical :)
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
getApi ( ) : string Get the api configuration name.
getApiConfig ( ) : ConfigObject Get the api configuration.
getClassData ( ) : array Get the class data array.
getClassInstance ( ) : mixed Get the api class instance.
getMethodData ( ) : array Return the method data array.
getMethodParameters ( ) : array Returns the array holding the information about the method parameters.
setApi ( string $api ) Set the api configuration name.
setClassData ( array $classData ) Set the api class data array.
setClassInstance ( mixed $classInstance ) Sets the class instance.
setMethodData ( array $methodData ) Set the method data array.
setMethodParameters ( array $methodParameters ) Set the array holding the information about the method parameters.

Method Details

getApi() public method

Get the api configuration name.
public getApi ( ) : string
return string

getApiConfig() public method

Note: api name must already be set.
public getApiConfig ( ) : ConfigObject
return Webiny\Component\Config\ConfigObject

getClassData() public method

Get the class data array.
public getClassData ( ) : array
return array

getClassInstance() public method

Get the api class instance.
public getClassInstance ( ) : mixed
return mixed

getMethodData() public method

Return the method data array.
public getMethodData ( ) : array
return array

getMethodParameters() public method

Returns the array holding the information about the method parameters.
public getMethodParameters ( ) : array
return array

setApi() public method

Set the api configuration name.
public setApi ( string $api )
$api string Api configuration name.

setClassData() public method

Set the api class data array.
public setClassData ( array $classData )
$classData array Api class data array.

setClassInstance() public method

Sets the class instance.
public setClassInstance ( mixed $classInstance )
$classInstance mixed Api class instance.

setMethodData() public method

Set the method data array.
public setMethodData ( array $methodData )
$methodData array Method data array

setMethodParameters() public method

Set the array holding the information about the method parameters.
public setMethodParameters ( array $methodParameters )
$methodParameters array Array holding the information about the method parameters.