<?php

namespace Sabre\EnhancedAirBook\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Ancillaries Structs
 * @subpackage Structs
 */
class Ancillaries extends AbstractStructBase
{
    /**
     * The AncillaryService
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\EnhancedAirBook\Structs\AncillaryService
     */
    public $AncillaryService;
    /**
     * Constructor method for Ancillaries
     * @uses Ancillaries::setAncillaryService()
     * @param \Sabre\EnhancedAirBook\Structs\AncillaryService $ancillaryService
     */
    public function __construct(\Sabre\EnhancedAirBook\Structs\AncillaryService $ancillaryService = null)
    {
        $this
            ->setAncillaryService($ancillaryService);
    }
    /**
     * Get AncillaryService value
     * @return \Sabre\EnhancedAirBook\Structs\AncillaryService|null
     */
    public function getAncillaryService()
    {
        return $this->AncillaryService;
    }
    /**
     * Set AncillaryService value
     * @param \Sabre\EnhancedAirBook\Structs\AncillaryService $ancillaryService
     * @return \Sabre\EnhancedAirBook\Structs\Ancillaries
     */
    public function setAncillaryService(\Sabre\EnhancedAirBook\Structs\AncillaryService $ancillaryService = null)
    {
        $this->AncillaryService = $ancillaryService;
        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\EnhancedAirBook\Structs\Ancillaries
     */
    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__;
    }
}
