<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * OTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail StructType
 * @package Dg
 * @subpackage Structs
 */
class DgOTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail extends AbstractStructBase
{
    /**
     * The UnderwriterCompany
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgCompanyNameType
     */
    public $UnderwriterCompany;
    /**
     * The UnderwriterDescription
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgFormattedTextType
     */
    public $UnderwriterDescription;
    /**
     * Constructor method for
     * OTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail
     * @uses DgOTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail::setUnderwriterCompany()
     * @uses DgOTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail::setUnderwriterDescription()
     * @param \dgsoft\StructType\DgCompanyNameType $underwriterCompany
     * @param \dgsoft\StructType\DgFormattedTextType $underwriterDescription
     */
    public function __construct(\dgsoft\StructType\DgCompanyNameType $underwriterCompany = null, \dgsoft\StructType\DgFormattedTextType $underwriterDescription = null)
    {
        $this
            ->setUnderwriterCompany($underwriterCompany)
            ->setUnderwriterDescription($underwriterDescription);
    }
    /**
     * Get UnderwriterCompany value
     * @return \dgsoft\StructType\DgCompanyNameType|null
     */
    public function getUnderwriterCompany()
    {
        return $this->UnderwriterCompany;
    }
    /**
     * Set UnderwriterCompany value
     * @param \dgsoft\StructType\DgCompanyNameType $underwriterCompany
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail
     */
    public function setUnderwriterCompany(\dgsoft\StructType\DgCompanyNameType $underwriterCompany = null)
    {
        $this->UnderwriterCompany = $underwriterCompany;
        return $this;
    }
    /**
     * Get UnderwriterDescription value
     * @return \dgsoft\StructType\DgFormattedTextType|null
     */
    public function getUnderwriterDescription()
    {
        return $this->UnderwriterDescription;
    }
    /**
     * Set UnderwriterDescription value
     * @param \dgsoft\StructType\DgFormattedTextType $underwriterDescription
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail
     */
    public function setUnderwriterDescription(\dgsoft\StructType\DgFormattedTextType $underwriterDescription = null)
    {
        $this->UnderwriterDescription = $underwriterDescription;
        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\DgOTA_InsurancePlanSearchRSAvailablePlansAvailablePlanUnderwriterDetail
     */
    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__;
    }
}
