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 'typeFiles.php';
11:
12: /*
13: <xs:complexType name="document">
14: <xs:sequence>
15: <xs:element name="description" type="xs:string"/>
16: <xs:element name="type" type="tns:documentTypeEnum"/>
17: <xs:element name="files" type="tns:files"/>
18: </xs:sequence>
19: </xs:complexType>
20: */
21:
22: /**
23: * This class represents the document WSDL type.
24: *
25: * It is based on the PartnerAPIType class and derives properties and methods from that class.
26: *
27: * @method PartnerAPITypeDocument setFiles(PartnerAPITypeFiles $value) Sets the files element.
28: * @method PartnerAPITypeFiles getFiles() Gets the files element.
29: * @property PartnerAPITypeFiles $files Gets the files element.
30: *
31: * @method PartnerAPITypeDocument setDescription(string $value) Sets the description element.
32: * @method string getDescription() Gets the description element.
33: * @property string $description Gets the description element.
34: *
35: * @method PartnerAPITypeDocument setType(string $value) Sets the type element.
36: * @method string getType() Gets the type element.
37: * @property string $type Gets the type element.
38: *
39: * @package types
40: */
41: class PartnerAPITypeDocument extends PartnerAPIType {
42:
43: protected function initData() {
44: $n = array(
45: 'files' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeFiles(), 'type' => 'PartnerAPITypeFiles', 'nillable' => FALSE),
46: 'description' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
47: 'type' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE)
48: );
49: return $n;
50: }
51:
52:
53: }
54: