\MarketplaceWebService_Model_ErrorResponse

MarketplaceWebService_Model_ErrorResponse

Properties:

  • Error: MarketplaceWebService_Model_Error
  • RequestId: string

Summary

Methods
Properties
Constants
__construct()
__get()
__set()
fromXML()
getError()
setError()
withError()
isSetError()
getRequestId()
setRequestId()
withRequestId()
isSetRequestId()
toXML()
getResponseHeaderMetadata()
setResponseHeaderMetadata()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(mixed  $data = null) 

Construct new MarketplaceWebService_Model_ErrorResponse

Parameters

mixed $data

DOMElement or Associative Array to construct from.

Valid properties:

  • Error: MarketplaceWebService_Model_Error
  • RequestId: string

__get()

__get(string  $propertyName) 

Support for virtual properties getters.

Virtual property call example:

$action->Property

Direct getter(preferred):

$action->getProperty()

Parameters

string $propertyName

name of the property

__set()

__set(string  $propertyName,   $propertyValue) 

Support for virtual properties setters.

Virtual property call example:

$action->Property = 'ABC'

Direct setter (preferred):

$action->setProperty('ABC')

Parameters

string $propertyName

name of the property

$propertyValue

fromXML()

fromXML(string  $xml) : \MarketplaceWebService_Model_ErrorResponse

Construct MarketplaceWebService_Model_ErrorResponse from XML string

Parameters

string $xml

XML string to construct from

Returns

\MarketplaceWebService_Model_ErrorResponse

getError()

getError() : array

Gets the value of the Error.

Returns

array —

of Error Error

setError()

setError(  $error) : \this

Sets the value of the Error.

Parameters

$error

Returns

\this —

instance

withError()

withError(\Error  $errorArgs) : \MarketplaceWebService_Model_ErrorResponse

Sets single or multiple values of Error list via variable number of arguments.

For example, to set the list with two elements, simply pass two values as arguments to this function withError($error1, $error2)

Parameters

\Error $errorArgs

one or more Error

Returns

\MarketplaceWebService_Model_ErrorResponse

instance

isSetError()

isSetError() : boolean

Checks if Error list is non-empty

Returns

boolean —

true if Error list is non-empty

getRequestId()

getRequestId() : string

Gets the value of the RequestId property.

Returns

string —

RequestId

setRequestId()

setRequestId(  $value) : \this

Sets the value of the RequestId property.

Parameters

$value

Returns

\this —

instance

withRequestId()

withRequestId(string  $value) : \MarketplaceWebService_Model_ErrorResponse

Sets the value of the RequestId and returns this instance

Parameters

string $value

RequestId

Returns

\MarketplaceWebService_Model_ErrorResponse

instance

isSetRequestId()

isSetRequestId() : boolean

Checks if RequestId is set

Returns

boolean —

true if RequestId is set

toXML()

toXML() : string

XML Representation for this object

Returns

string —

XML for this object

getResponseHeaderMetadata()

getResponseHeaderMetadata() 

setResponseHeaderMetadata()

setResponseHeaderMetadata(  $responseHeaderMetadata) 

Parameters

$responseHeaderMetadata