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 'typeErrors.php';
11:
12: /*
13: <xs:complexType name="responseHeader">
14: <xs:sequence>
15: <xs:element minOccurs="0" name="currentPage" type="xs:int"/>
16: <xs:element minOccurs="0" name="errors" type="tns:errors"/>
17: <xs:element minOccurs="0" name="pagesCount" type="xs:int"/>
18: <xs:element minOccurs="0" name="returnCount" type="xs:int"/>
19: <xs:element name="successCode" type="xs:int"/>
20: <xs:element name="timestamp" type="xs:dateTime"/>
21: </xs:sequence>
22: </xs:complexType>
23: */
24:
25: /**
26: * This class represents the responseHeader WSDL type.
27: *
28: * It is based on the PartnerAPIType class and derives properties and methods from that class.
29: *
30: * @method PartnerAPITypeResponseHeader setCurrentPage(int $value) Sets the currentPage element.
31: * @method int getCurrentPage() Gets the currentPage element or NULL.
32: * @property int $currentPage Gets the currentPage element or NULL.
33: *
34: * @method PartnerAPITypeResponseHeader setErrors(PartnerAPITypeErrors $value) Sets the errors element.
35: * @method PartnerAPITypeErrors getErrors() Gets the errors element or NULL.
36: * @property PartnerAPITypeErrors $errors Gets the errors element or NULL.
37: *
38: * @method PartnerAPITypeResponseHeader setPagesCount(int $value) Sets the pagesCount element.
39: * @method int getPagesCount() Gets the pagesCount element or NULL.
40: * @property int $pagesCount Gets the pagesCount element or NULL.
41: *
42: * @method PartnerAPITypeResponseHeader setReturnCount(int $value) Sets the returnCount element.
43: * @method int getReturnCount() Gets the returnCount element or NULL.
44: * @property int $returnCount Gets the returnCount element or NULL.
45: *
46: * @method PartnerAPITypeResponseHeader setSuccessCode(int $value) Sets the successCode element.
47: * @method int getSuccessCode() Gets the successCode element.
48: * @property int $successCode Gets the successCode element.
49: *
50: * @method PartnerAPITypeResponseHeader setTimestamp(string $value) Sets the timestamp element.
51: * @method string getTimestamp() Gets the timestamp element.
52: * @property string $timestamp Gets the timestamp element.
53: *
54: * @package types
55: */
56: class PartnerAPITypeResponseHeader extends PartnerAPIType {
57:
58: protected function initData() {
59: $n = array(
60: 'currentPage' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE),
61: 'errors' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeErrors', 'nillable' => FALSE),
62: 'pagesCount' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE),
63: 'returnCount' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE),
64: 'successCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE),
65: 'timestamp' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE)
66: );
67: return $n;
68: }
69:
70:
71: }
72: