PHP Class XeroPHP\Models\Accounting\ExpenseClaim

Inheritance: extends XeroPHP\Remote\Object
Show file Open project: calcinai/xero-php

Public Methods

Method Description
addReceipt ( Receipt $value ) : ExpenseClaim
getAPIStem ( ) : string | null Get the stem of the API (core.xro) etc
getExpenseClaimID ( ) : string
getGUIDProperty ( ) : string Get the guid property
getProperties ( ) : array Get the properties of the object. Indexed by constants [0] - Mandatory [1] - Type [2] - PHP type [3] - Is an Array [4] - Saves directly
getReceipts ( ) : Receipt[] | Collection
getResourceURI ( ) : string Get the resource uri of the class (Contacts) etc
getRootNodeName ( ) : string Get the root node name. Just the unqualified classname
getSupportedMethods ( ) Get the supported methods
getUser ( ) : User
isPageable ( )
setExpenseClaimID ( string $value ) : ExpenseClaim
setUser ( User $value ) : ExpenseClaim

Method Details

addReceipt() public method

public addReceipt ( Receipt $value ) : ExpenseClaim
$value Receipt
return ExpenseClaim

getAPIStem() public static method

Get the stem of the API (core.xro) etc
public static getAPIStem ( ) : string | null
return string | null

getExpenseClaimID() public method

public getExpenseClaimID ( ) : string
return string

getGUIDProperty() public static method

Get the guid property
public static getGUIDProperty ( ) : string
return string

getProperties() public static method

Get the properties of the object. Indexed by constants [0] - Mandatory [1] - Type [2] - PHP type [3] - Is an Array [4] - Saves directly
public static getProperties ( ) : array
return array

getReceipts() public method

public getReceipts ( ) : Receipt[] | Collection
return Receipt[] | Collection Always returns a collection, switch is for type hinting

getResourceURI() public static method

Get the resource uri of the class (Contacts) etc
public static getResourceURI ( ) : string
return string

getRootNodeName() public static method

Get the root node name. Just the unqualified classname
public static getRootNodeName ( ) : string
return string

getSupportedMethods() public static method

Get the supported methods
public static getSupportedMethods ( )

getUser() public method

public getUser ( ) : User
return User

isPageable() public static method

public static isPageable ( )

setExpenseClaimID() public method

public setExpenseClaimID ( string $value ) : ExpenseClaim
$value string
return ExpenseClaim

setUser() public method

public setUser ( User $value ) : ExpenseClaim
$value User
return ExpenseClaim