PHP Class XeroPHP\Remote\Request

Datei anzeigen Open project: calcinai/xero-php Class Usage Examples

Public Methods

Method Description
__construct ( Application $app, URL $url, $method = self::METHOD_GET )
getHeader ( $key ) : null | string
getHeaders ( )
getMethod ( ) : string
getParameters ( )
getResponse ( ) : Response
getUrl ( ) : URL
send ( )
setBody ( $body, $content_type = self::CONTENT_TYPE_XML )
setHeader ( $key, $val )
setParameter ( $key, $value )

Method Details

__construct() public method

public __construct ( Application $app, URL $url, $method = self::METHOD_GET )
$app XeroPHP\Application
$url URL

getHeader() public method

public getHeader ( $key ) : null | string
$key string Name of the header
return null | string Header or null if not defined

getHeaders() public method

public getHeaders ( )

getMethod() public method

public getMethod ( ) : string
return string

getParameters() public method

public getParameters ( )

getResponse() public method

public getResponse ( ) : Response
return Response

getUrl() public method

public getUrl ( ) : URL
return URL

send() public method

public send ( )

setBody() public method

public setBody ( $body, $content_type = self::CONTENT_TYPE_XML )

setHeader() public method

public setHeader ( $key, $val )
$key string Name of the header
$val string Value of the header

setParameter() public method

public setParameter ( $key, $value )