PHP 클래스 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 :)
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getApi() 공개 메소드

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

getApiConfig() 공개 메소드

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

getClassData() 공개 메소드

Get the class data array.
public getClassData ( ) : array
리턴 array

getClassInstance() 공개 메소드

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

getMethodData() 공개 메소드

Return the method data array.
public getMethodData ( ) : array
리턴 array

getMethodParameters() 공개 메소드

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

setApi() 공개 메소드

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

setClassData() 공개 메소드

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

setClassInstance() 공개 메소드

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

setMethodData() 공개 메소드

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

setMethodParameters() 공개 메소드

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