Overview

Packages

  • exceptions
  • messages
  • operations
  • PHP
  • service
  • types

Classes

  • PartnerAPIError
  • PartnerAPIOperation
  • PartnerAPIOperationAddEmailVerification
  • PartnerAPIOperationAddSanVerification
  • PartnerAPIOperationCancelOrder
  • PartnerAPIOperationGetCertificate
  • PartnerAPIOperationGetEmailVerification
  • PartnerAPIOperationGetExpiringCertificates
  • PartnerAPIOperationGetModifiedOrders
  • PartnerAPIOperationGetOrderByOrderID
  • PartnerAPIOperationGetOrdersByDateRange
  • PartnerAPIOperationGetOrderState
  • PartnerAPIOperationGetProductList
  • PartnerAPIOperationGetSanVerificationState
  • PartnerAPIOperationModifySNICertificate
  • PartnerAPIOperationOrderSNICertificate
  • PartnerAPIOperationPerformSanVerification
  • PartnerAPIOperationQuickOrder
  • PartnerAPIOperationReissueCertificate
  • PartnerAPIOperationRenewCertificate
  • PartnerAPIOperationRevokeCertificate
  • PartnerAPIOperationValidateOrderParameters
  • PartnerAPIOperationVerifyOrder
  • Overview
  • Package
  • Class
  • Tree
  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/messageGetCertificate.php';
 11: require_once 'certumPartnerAPI/messages/messageGetCertificateResponse.php';
 12: 
 13: /*
 14: <operation name="getCertificate" parameterOrder="getCertificate">
 15:     <input message="tns:PartnerServicePortType_getCertificate">
 16:     </input>
 17:     <output message="tns:PartnerServicePortType_getCertificateResponse">
 18:     </output>
 19: </operation>
 20: */
 21: 
 22: /**
 23:  * This class represents the getCertificate WSDL operation.
 24:  *
 25:  * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
 26:  *
 27:  * @method PartnerAPIMessageGetCertificateResponse getResponseMessage() A complete response from a service
 28:  * 
 29:  * @package operations
 30:  */
 31: class PartnerAPIOperationGetCertificate extends PartnerAPIOperation {
 32: 
 33:     /**
 34:      * @var PartnerAPIMessageGetCertificate
 35:      */
 36:     protected $_input = NULL;
 37: 
 38:     /**
 39:      * @var PartnerAPIMessageGetCertificateResponse
 40:      */
 41:     protected $_output = NULL;
 42: 
 43:     /**
 44:      * @var string
 45:      */
 46:     protected $_operation = 'getCertificate';
 47: 
 48:     /**
 49:      * The constructor.
 50:      *
 51:      * It initializes input and output data.
 52:      */
 53:     public function __construct() {
 54:         $this->_input  = new PartnerAPIMessageGetCertificate();
 55:         $this->_output = new PartnerAPIMessageGetCertificateResponse();
 56:     }
 57: 
 58:     /**
 59:      * Sets an order ID for the request.
 60:      *
 61:      * It is required to set orderID or serialNumber value but only one
 62:      * of them may be set. Setting both values is an error.
 63:      *
 64:      * @param string $orderID
 65:      * @return PartnerAPIOperationGetCertificate
 66:      */
 67:     public function setOrderID($orderID) {
 68:         $this->_input->getCertificate->setOrderID($orderID);
 69:         return $this;
 70:     }
 71: 
 72:     /**
 73:      * Sets the serial number of a certificate for the request.
 74:      *
 75:      * It is required to set orderID or serialNumber value but only one
 76:      * of them may be set. Setting both values is an error.
 77:      *
 78:      * @param string $serialNumber
 79:      * @return PartnerAPIOperationGetCertificate
 80:      */
 81:     public function setSerialNumber($serialNumber) {
 82:         $this->_input->getCertificate->setSerialNumber($serialNumber);
 83:         return $this;
 84:     }
 85: 
 86:     /**
 87:      * Returns certificate details contained in a response.
 88:      *
 89:      * @return PartnerAPITypeCertificateDetails|null
 90:      */
 91:     public function getCertificateDetails() {
 92:         return $this->_output->getCertificateResponse->certificateDetails;
 93:     }
 94: 
 95:     /**
 96:      * Returns CA bundle contained in a response.
 97:      *
 98:      * @return PartnerAPITypeCaBundle|null
 99:      */
100:     public function getCaBundle() {
101:         return $this->_output->getCertificateResponse->caBundle;
102:     }
103: 
104: }
105: 
API documentation generated by ApiGen 2.8.0