<?php

namespace GreenwayDirectService;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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