PHP Class Api\ArrayType\ApiArrayOfError

Inheritance: extends WsdlToPhp\PackageBase\AbstractStructArrayBase
Show file Open project: wsdltophp/packagegenerator

Public Properties

Property Type Description
$Error Api\StructType\ApiError[] The Error Meta informations extracted from the WSDL - maxOccurs: unbounded - minOccurs: 0

Public Methods

Method Description
__construct ( array $error = [] ) Constructor method for ArrayOfError
__set_state ( array $array ) : ApiArrayOfError Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
__toString ( ) : string Method returning the class name
addToError ( Api\StructType\ApiError $item ) : ApiArrayOfError Add item to Error value
current ( ) : Api\StructType\ApiError | null Returns the current element
first ( ) : Api\StructType\ApiError | null Returns the first element
getAttributeName ( ) : string Returns the attribute name
getError ( ) : Api\StructType\ApiError[] | null Get Error value
item ( integer $index ) : Api\StructType\ApiError | null Returns the indexed element
last ( ) : Api\StructType\ApiError | null Returns the last element
offsetGet ( integer $offset ) : Api\StructType\ApiError | null Returns the element at the offset
setError ( array $error = [] ) : ApiArrayOfError Set Error value

Method Details

__construct() public method

Constructor method for ArrayOfError
public __construct ( array $error = [] )
$error array

__set_state() public static method

Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
See also: AbstractStructArrayBase::__set_state()
public static __set_state ( array $array ) : ApiArrayOfError
$array array the exported values
return ApiArrayOfError

__toString() public method

Method returning the class name
public __toString ( ) : string
return string __CLASS__

addToError() public method

Add item to Error value
public addToError ( Api\StructType\ApiError $item ) : ApiArrayOfError
$item Api\StructType\ApiError
return ApiArrayOfError

current() public method

Returns the current element
See also: AbstractStructArrayBase::current()
public current ( ) : Api\StructType\ApiError | null
return Api\StructType\ApiError | null

first() public method

Returns the first element
See also: AbstractStructArrayBase::first()
public first ( ) : Api\StructType\ApiError | null
return Api\StructType\ApiError | null

getAttributeName() public method

Returns the attribute name
See also: AbstractStructArrayBase::getAttributeName()
public getAttributeName ( ) : string
return string Error

getError() public method

Get Error value
public getError ( ) : Api\StructType\ApiError[] | null
return Api\StructType\ApiError[] | null

item() public method

Returns the indexed element
See also: AbstractStructArrayBase::item()
public item ( integer $index ) : Api\StructType\ApiError | null
$index integer
return Api\StructType\ApiError | null

last() public method

Returns the last element
See also: AbstractStructArrayBase::last()
public last ( ) : Api\StructType\ApiError | null
return Api\StructType\ApiError | null

offsetGet() public method

Returns the element at the offset
See also: AbstractStructArrayBase::offsetGet()
public offsetGet ( integer $offset ) : Api\StructType\ApiError | null
$offset integer
return Api\StructType\ApiError | null

setError() public method

Set Error value
public setError ( array $error = [] ) : ApiArrayOfError
$error array
return ApiArrayOfError

Property Details

$Error public property

The Error Meta informations extracted from the WSDL - maxOccurs: unbounded - minOccurs: 0
public ApiError[],Api\StructType $Error
return Api\StructType\ApiError[]