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 'typeProduct.php';
11:
12: /*
13: <xs:complexType name="getProductListResponse">
14: <xs:complexContent>
15: <xs:extension base="tns:response">
16: <xs:sequence>
17: <xs:element minOccurs="0" name="products">
18: <xs:complexType>
19: <xs:sequence>
20: <xs:element maxOccurs="unbounded" name="product" type="tns:product"/>
21: </xs:sequence>
22: </xs:complexType>
23: </xs:element>
24: </xs:sequence>
25: </xs:extension>
26: </xs:complexContent>
27: </xs:complexType>
28: */
29:
30: /**
31: * This class represents the getProductListResponse > products WSDL type.
32: *
33: * It is based on the PartnerAPIType class and derives properties and methods from that class.
34: *
35: * @method PartnerAPITypeGetProductListResponse_Products setProduct(PartnerAPITypeProduct $value) Sets the product element. This method removes all previously added product elements and creates a new set of product elements.
36: * @method PartnerAPITypeGetProductListResponse_Products addProduct(PartnerAPITypeProduct $value) Adds a new product element to the existing set.
37: * @method PartnerAPITypeProduct|PartnerAPITypeProduct[] getProduct() Gets the product element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeProduct objects will be returned.
38: * @property PartnerAPITypeProduct|PartnerAPITypeProduct[] $product Gets the product element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeProduct objects will be returned.
39: *
40: * @package types
41: */
42: class PartnerAPITypeGetProductListResponse_Products extends PartnerAPIType {
43:
44: protected function initData() {
45: $n = array(
46: 'product' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeProduct(), 'type' => 'PartnerAPITypeProduct', 'nillable' => FALSE)
47: );
48: return $n;
49: }
50:
51:
52: }
53: