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:
11: /*
12: <xs:complexType name="error">
13: <xs:sequence>
14: <xs:element name="errorCode" type="xs:int"/>
15: <xs:element minOccurs="0" name="value" type="xs:string"/>
16: </xs:sequence>
17: </xs:complexType>
18: */
19:
20: /**
21: * This class represents the error WSDL type.
22: *
23: * It is based on the PartnerAPIType class and derives properties and methods from that class.
24: *
25: * @method PartnerAPITypeError setErrorCode(int $value) Sets the errorCode element.
26: * @method int getErrorCode() Gets the errorCode element.
27: * @property int $errorCode Gets the errorCode element.
28: *
29: * @method PartnerAPITypeError setValue(string $value) Sets the value element.
30: * @method string getValue() Gets the value element or NULL.
31: * @property string $value Gets the value element or NULL.
32: *
33: * @package types
34: */
35: class PartnerAPITypeError extends PartnerAPIType {
36:
37: protected function initData() {
38: $n = array(
39: 'errorCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE),
40: 'value' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE)
41: );
42: return $n;
43: }
44:
45:
46: }
47: