<?php

namespace GreenwayDirectService;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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