<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OTA_VehRateRuleRSRateRulesPickupReturnRules StructType
 * @package Dg
 * @subpackage Structs
 */
class DgOTA_VehRateRuleRSRateRulesPickupReturnRules extends AbstractStructBase
{
    /**
     * The EarliestPickup
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesEarliestPickup
     */
    public $EarliestPickup;
    /**
     * The LatestPickup
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestPickup
     */
    public $LatestPickup;
    /**
     * The LatestReturn
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestReturn
     */
    public $LatestReturn;
    /**
     * Constructor method for OTA_VehRateRuleRSRateRulesPickupReturnRules
     * @uses DgOTA_VehRateRuleRSRateRulesPickupReturnRules::setEarliestPickup()
     * @uses DgOTA_VehRateRuleRSRateRulesPickupReturnRules::setLatestPickup()
     * @uses DgOTA_VehRateRuleRSRateRulesPickupReturnRules::setLatestReturn()
     * @param \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesEarliestPickup $earliestPickup
     * @param \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestPickup $latestPickup
     * @param \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestReturn $latestReturn
     */
    public function __construct(\dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesEarliestPickup $earliestPickup = null, \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestPickup $latestPickup = null, \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestReturn $latestReturn = null)
    {
        $this
            ->setEarliestPickup($earliestPickup)
            ->setLatestPickup($latestPickup)
            ->setLatestReturn($latestReturn);
    }
    /**
     * Get EarliestPickup value
     * @return \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesEarliestPickup|null
     */
    public function getEarliestPickup()
    {
        return $this->EarliestPickup;
    }
    /**
     * Set EarliestPickup value
     * @param \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesEarliestPickup $earliestPickup
     * @return \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRules
     */
    public function setEarliestPickup(\dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesEarliestPickup $earliestPickup = null)
    {
        $this->EarliestPickup = $earliestPickup;
        return $this;
    }
    /**
     * Get LatestPickup value
     * @return \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestPickup|null
     */
    public function getLatestPickup()
    {
        return $this->LatestPickup;
    }
    /**
     * Set LatestPickup value
     * @param \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestPickup $latestPickup
     * @return \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRules
     */
    public function setLatestPickup(\dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestPickup $latestPickup = null)
    {
        $this->LatestPickup = $latestPickup;
        return $this;
    }
    /**
     * Get LatestReturn value
     * @return \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestReturn|null
     */
    public function getLatestReturn()
    {
        return $this->LatestReturn;
    }
    /**
     * Set LatestReturn value
     * @param \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestReturn $latestReturn
     * @return \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRules
     */
    public function setLatestReturn(\dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRulesLatestReturn $latestReturn = null)
    {
        $this->LatestReturn = $latestReturn;
        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 \dgsoft\StructType\DgOTA_VehRateRuleRSRateRulesPickupReturnRules
     */
    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__;
    }
}
