<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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