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