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="file">
13: <xs:sequence>
14: <xs:element name="fileName" type="tns:fileName"/>
15: <xs:element name="content" type="xs:base64Binary" xmime:expectedContentTypes="application/octet-stream"/>
16: </xs:sequence>
17: </xs:complexType>
18: */
19:
20: /**
21: * This class represents the file WSDL type.
22: *
23: * It is based on the PartnerAPIType class and derives properties and methods from that class.
24: *
25: * @method PartnerAPITypeFile setFileName(string $value) Sets the fileName element.
26: * @method string getFileName() Gets the fileName element.
27: * @property string $fileName Gets the fileName element.
28: *
29: * @method PartnerAPITypeFile setContent(string $value) Sets the content element.
30: * @method string getContent() Gets the content element.
31: * @property string $content Gets the content element.
32: *
33: * @package types
34: */
35: class PartnerAPITypeFile extends PartnerAPIType {
36:
37: protected function initData() {
38: $n = array(
39: 'fileName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
40: 'content' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE)
41: );
42: return $n;
43: }
44:
45:
46: }
47: