PHP Class XeroPHP\Remote\Request

Afficher le fichier Open project: calcinai/xero-php Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getHeader() public méthode

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

getHeaders() public méthode

public getHeaders ( )

getMethod() public méthode

public getMethod ( ) : string
Résultat string

getParameters() public méthode

public getParameters ( )

getResponse() public méthode

public getResponse ( ) : Response
Résultat Response

getUrl() public méthode

public getUrl ( ) : URL
Résultat URL

send() public méthode

public send ( )

setBody() public méthode

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

setHeader() public méthode

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

setParameter() public méthode

public setParameter ( $key, $value )