<?php

namespace GreenwayDirectService;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for newReservationResponse StructType
 * Meta informations extracted from the WSDL
 * - type: tns:newReservation
 * @subpackage Structs
 */
class NewReservationResponse extends AbstractStructBase
{
    /**
     * The Reservation
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \GreenwayDirectService\Reservation
     */
    public $Reservation;
    /**
     * Constructor method for newReservationResponse
     * @uses NewReservationResponse::setReservation()
     * @param \GreenwayDirectService\Reservation $reservation
     */
    public function __construct(\GreenwayDirectService\Reservation $reservation = null)
    {
        $this
            ->setReservation($reservation);
    }
    /**
     * Get Reservation value
     * @return \GreenwayDirectService\Reservation|null
     */
    public function getReservation()
    {
        return $this->Reservation;
    }
    /**
     * Set Reservation value
     * @param \GreenwayDirectService\Reservation $reservation
     * @return \GreenwayDirectService\NewReservationResponse
     */
    public function setReservation(\GreenwayDirectService\Reservation $reservation = null)
    {
        $this->Reservation = $reservation;
        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 \GreenwayDirectService\NewReservationResponse
     */
    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__;
    }
}
