<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CancelResponse StructType
 * @package Dg
 * @subpackage Structs
 */
class DgCancelResponse extends AbstractStructBase
{
    /**
     * The OTA_CancelRS
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgOTA_CancelRS
     */
    public $OTA_CancelRS;
    /**
     * Constructor method for CancelResponse
     * @uses DgCancelResponse::setOTA_CancelRS()
     * @param \dgsoft\StructType\DgOTA_CancelRS $oTA_CancelRS
     */
    public function __construct(\dgsoft\StructType\DgOTA_CancelRS $oTA_CancelRS = null)
    {
        $this
            ->setOTA_CancelRS($oTA_CancelRS);
    }
    /**
     * Get OTA_CancelRS value
     * @return \dgsoft\StructType\DgOTA_CancelRS|null
     */
    public function getOTA_CancelRS()
    {
        return $this->OTA_CancelRS;
    }
    /**
     * Set OTA_CancelRS value
     * @param \dgsoft\StructType\DgOTA_CancelRS $oTA_CancelRS
     * @return \dgsoft\StructType\DgCancelResponse
     */
    public function setOTA_CancelRS(\dgsoft\StructType\DgOTA_CancelRS $oTA_CancelRS = null)
    {
        $this->OTA_CancelRS = $oTA_CancelRS;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \dgsoft\StructType\DgCancelResponse
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
