<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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