<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OTA_AirRulesRQRuleReqInfoSubSection StructType
 * @package Dg
 * @subpackage Structs
 */
class DgOTA_AirRulesRQRuleReqInfoSubSection extends AbstractStructBase
{
    /**
     * The SubTitle
     * @var string
     */
    public $SubTitle;
    /**
     * The SubCode
     * @var string
     */
    public $SubCode;
    /**
     * The SubSectionNumber
     * @var string
     */
    public $SubSectionNumber;
    /**
     * Constructor method for OTA_AirRulesRQRuleReqInfoSubSection
     * @uses DgOTA_AirRulesRQRuleReqInfoSubSection::setSubTitle()
     * @uses DgOTA_AirRulesRQRuleReqInfoSubSection::setSubCode()
     * @uses DgOTA_AirRulesRQRuleReqInfoSubSection::setSubSectionNumber()
     * @param string $subTitle
     * @param string $subCode
     * @param string $subSectionNumber
     */
    public function __construct($subTitle = null, $subCode = null, $subSectionNumber = null)
    {
        $this
            ->setSubTitle($subTitle)
            ->setSubCode($subCode)
            ->setSubSectionNumber($subSectionNumber);
    }
    /**
     * Get SubTitle value
     * @return string|null
     */
    public function getSubTitle()
    {
        return $this->SubTitle;
    }
    /**
     * Set SubTitle value
     * @param string $subTitle
     * @return \dgsoft\StructType\DgOTA_AirRulesRQRuleReqInfoSubSection
     */
    public function setSubTitle($subTitle = null)
    {
        // validation for constraint: string
        if (!is_null($subTitle) && !is_string($subTitle)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($subTitle)), __LINE__);
        }
        $this->SubTitle = $subTitle;
        return $this;
    }
    /**
     * Get SubCode value
     * @return string|null
     */
    public function getSubCode()
    {
        return $this->SubCode;
    }
    /**
     * Set SubCode value
     * @param string $subCode
     * @return \dgsoft\StructType\DgOTA_AirRulesRQRuleReqInfoSubSection
     */
    public function setSubCode($subCode = null)
    {
        // validation for constraint: string
        if (!is_null($subCode) && !is_string($subCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($subCode)), __LINE__);
        }
        $this->SubCode = $subCode;
        return $this;
    }
    /**
     * Get SubSectionNumber value
     * @return string|null
     */
    public function getSubSectionNumber()
    {
        return $this->SubSectionNumber;
    }
    /**
     * Set SubSectionNumber value
     * @param string $subSectionNumber
     * @return \dgsoft\StructType\DgOTA_AirRulesRQRuleReqInfoSubSection
     */
    public function setSubSectionNumber($subSectionNumber = null)
    {
        // validation for constraint: string
        if (!is_null($subSectionNumber) && !is_string($subSectionNumber)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($subSectionNumber)), __LINE__);
        }
        $this->SubSectionNumber = $subSectionNumber;
        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_AirRulesRQRuleReqInfoSubSection
     */
    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__;
    }
}
