<?php

namespace GreenwayDirectService;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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