1: <?php
2: /**
3: * Partner API Library
4: *
5: * @copyright Copyright (c) 2020 Asseco Data Systems SA
6: * @license license.txt
7: */
8:
9: require_once 'type.php';
10: require_once 'typeError.php';
11:
12: /*
13: <xs:complexType name="errors">
14: <xs:sequence>
15: <xs:element maxOccurs="unbounded" name="Error" type="tns:error"/>
16: </xs:sequence>
17: </xs:complexType>
18: */
19:
20: /**
21: * This class represents the errors WSDL type.
22: *
23: * It is based on the PartnerAPIType class and derives properties and methods from that class.
24: *
25: * @method PartnerAPITypeErrors setError(PartnerAPITypeError $value) Sets the Error element. This method removes all previously added Error elements and creates a new set of Error elements.
26: * @method PartnerAPITypeErrors addError(PartnerAPITypeError $value) Adds a new Error element to the existing set.
27: * @method PartnerAPITypeError|PartnerAPITypeError[] getError() Gets the Error element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeError objects will be returned.
28: * @property PartnerAPITypeError|PartnerAPITypeError[] $Error Gets the Error element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeError objects will be returned.
29: *
30: * @package types
31: */
32: class PartnerAPITypeErrors extends PartnerAPIType {
33:
34: protected function initData() {
35: $n = array(
36: 'Error' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeError(), 'type' => 'PartnerAPITypeError', 'nillable' => FALSE)
37: );
38: return $n;
39: }
40:
41:
42: }
43: