<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for InsuranceCheckAvail StructType
 * @subpackage Structs
 */
class InsuranceCheckAvail extends AbstractStructBase
{
    /**
     * The InsuranceCheckAvailRQ
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_InsuranceCheckAvail
     */
    public $InsuranceCheckAvailRQ;
    /**
     * Constructor method for InsuranceCheckAvail
     * @uses InsuranceCheckAvail::setInsuranceCheckAvailRQ()
     * @param \StructType\JP_InsuranceCheckAvail $insuranceCheckAvailRQ
     */
    public function __construct(\StructType\JP_InsuranceCheckAvail $insuranceCheckAvailRQ = null)
    {
        $this
            ->setInsuranceCheckAvailRQ($insuranceCheckAvailRQ);
    }
    /**
     * Get InsuranceCheckAvailRQ value
     * @return \StructType\JP_InsuranceCheckAvail|null
     */
    public function getInsuranceCheckAvailRQ()
    {
        return $this->InsuranceCheckAvailRQ;
    }
    /**
     * Set InsuranceCheckAvailRQ value
     * @param \StructType\JP_InsuranceCheckAvail $insuranceCheckAvailRQ
     * @return \StructType\InsuranceCheckAvail
     */
    public function setInsuranceCheckAvailRQ(\StructType\JP_InsuranceCheckAvail $insuranceCheckAvailRQ = null)
    {
        $this->InsuranceCheckAvailRQ = $insuranceCheckAvailRQ;
        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 \StructType\InsuranceCheckAvail
     */
    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__;
    }
}
