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 'operation.php';
10: require_once 'certumPartnerAPI/messages/messageGetEmailVerification.php';
11: require_once 'certumPartnerAPI/messages/messageGetEmailVerificationResponse.php';
12:
13: /*
14: <operation name="getEmailVerification" parameterOrder="getEmailVerification">
15: <input message="tns:PartnerServicePortType_getEmailVerification">
16: </input>
17: <output message="tns:PartnerServicePortType_getEmailVerificationResponse">
18: </output>
19: </operation>
20: */
21:
22: /**
23: * This class represents the getEmailVerification WSDL operation.
24: *
25: * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
26: *
27: * @method PartnerAPIMessageGetEmailVerificationResponse getResponseMessage() A complete response from a service
28: *
29: * @package operations
30: */
31: class PartnerAPIOperationGetEmailVerification extends PartnerAPIOperation {
32:
33: /**
34: * @var PartnerAPIMessageGetEmailVerification
35: */
36: protected $_input = NULL;
37:
38: /**
39: * @var PartnerAPIMessageGetEmailVerificationResponse
40: */
41: protected $_output = NULL;
42:
43: /**
44: * @var string
45: */
46: protected $_operation = 'getEmailVerification';
47:
48: /**
49: * The constructor.
50: *
51: * It initializes input and output data.
52: */
53: public function __construct() {
54: $this->_input = new PartnerAPIMessageGetEmailVerification();
55: $this->_output = new PartnerAPIMessageGetEmailVerificationResponse();
56: }
57:
58: /**
59: * Sets an order ID for the request.
60: *
61: * Setting this value is required.
62: *
63: * @param string $orderID
64: * @return PartnerAPIOperationGetEmailVerification
65: */
66: public function setOrderID($orderID) {
67: $this->_input->getEmailVerification->setOrderID($orderID);
68: return $this;
69: }
70:
71: /**
72: * Returns email verification contained in a response.
73: *
74: * @return PartnerAPITypeEmailVerification
75: */
76: public function getEmailVerification() {
77: return $this->_output->getEmailVerificationResponse->emailVerification;
78: }
79: }
80: