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