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 'typeDocument.php';
11:
12: /*
13: <xs:complexType name="documents">
14: <xs:sequence>
15: <xs:element maxOccurs="unbounded" name="document" type="tns:document"/>
16: </xs:sequence>
17: </xs:complexType>
18: */
19:
20: /**
21: * This class represents the documents WSDL type.
22: *
23: * It is based on the PartnerAPIType class and derives properties and methods from that class.
24: *
25: * @method PartnerAPITypeDocuments setDocument(PartnerAPITypeDocument $value) Sets the document element. This method removes all previously added document elements and creates a new set of document elements.
26: * @method PartnerAPITypeDocuments addDocument(PartnerAPITypeDocument $value) Adds a new document element to the existing set.
27: * @method PartnerAPITypeDocument|PartnerAPITypeDocument[] getDocument() Gets the document element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeDocument objects will be returned.
28: * @property PartnerAPITypeDocument|PartnerAPITypeDocument[] $document Gets the document element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeDocument objects will be returned.
29: *
30: * @package types
31: */
32: class PartnerAPITypeDocuments extends PartnerAPIType {
33:
34: protected function initData() {
35: $n = array(
36: 'document' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeDocument(), 'type' => 'PartnerAPITypeDocument', 'nillable' => FALSE)
37: );
38: return $n;
39: }
40:
41:
42: }
43: