<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AncillaryService Structs
 * @subpackage Structs
 */
class AncillaryService extends AbstractStructBase
{
    /**
     * The Text
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $Text;
    /**
     * The SubGroupCode
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $SubGroupCode;
    /**
     * Constructor method for AncillaryService
     * @uses AncillaryService::setText()
     * @uses AncillaryService::setSubGroupCode()
     * @param string $text
     * @param string $subGroupCode
     */
    public function __construct($text = null, $subGroupCode = null)
    {
        $this
            ->setText($text)
            ->setSubGroupCode($subGroupCode);
    }
    /**
     * Get Text value
     * @return string|null
     */
    public function getText()
    {
        return $this->Text;
    }
    /**
     * Set Text value
     * @param string $text
     * @return \Sabre\OTAAirPrice\Structs\AncillaryService
     */
    public function setText($text = null)
    {
        $this->Text = $text;
        return $this;
    }
    /**
     * Get SubGroupCode value
     * @return string|null
     */
    public function getSubGroupCode()
    {
        return $this->SubGroupCode;
    }
    /**
     * Set SubGroupCode value
     * @param string $subGroupCode
     * @return \Sabre\OTAAirPrice\Structs\AncillaryService
     */
    public function setSubGroupCode($subGroupCode = null)
    {
        $this->SubGroupCode = $subGroupCode;
        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 \Sabre\OTAAirPrice\Structs\AncillaryService
     */
    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__;
    }
}
