<?php

namespace Sabre\PassengerDetailsRQ\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SupplementaryServices Structs
 * @subpackage Structs
 */
class SupplementaryServices extends AbstractStructBase
{
    /**
     * The SupplementaryService
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * @var \Sabre\PassengerDetailsRQ\Structs\SupplementaryServiceType[]
     */
    public $SupplementaryService;
    /**
     * Constructor method for SupplementaryServices
     * @uses SupplementaryServices::setSupplementaryService()
     * @param \Sabre\PassengerDetailsRQ\Structs\SupplementaryServiceType[] $supplementaryService
     */
    public function __construct(array $supplementaryService = array())
    {
        $this
            ->setSupplementaryService($supplementaryService);
    }
    /**
     * Get SupplementaryService value
     * @return \Sabre\PassengerDetailsRQ\Structs\SupplementaryServiceType[]|null
     */
    public function getSupplementaryService()
    {
        return $this->SupplementaryService;
    }
    /**
     * Set SupplementaryService value
     * @throws \InvalidArgumentException
     * @param \Sabre\PassengerDetailsRQ\Structs\SupplementaryServiceType[] $supplementaryService
     * @return \Sabre\PassengerDetailsRQ\Structs\SupplementaryServices
     */
    public function setSupplementaryService(array $supplementaryService = array())
    {
        $this->SupplementaryService = $supplementaryService;
        return $this;
    }
    /**
     * Add item to SupplementaryService value
     * @throws \InvalidArgumentException
     * @param \Sabre\PassengerDetailsRQ\Structs\SupplementaryServiceType $item
     * @return \Sabre\PassengerDetailsRQ\Structs\SupplementaryServices
     */
    public function addToSupplementaryService(\Sabre\PassengerDetailsRQ\Structs\SupplementaryServiceType $item)
    {
        $this->SupplementaryService[] = $item;
        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\PassengerDetailsRQ\Structs\SupplementaryServices
     */
    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__;
    }
}
