<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for VehicleRetrieveResRQAdditionalInfoType StructType
 * @package Dg
 * @subpackage Structs
 */
class DgVehicleRetrieveResRQAdditionalInfoType extends AbstractStructBase
{
    /**
     * The PickUpLocation
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgLocationType
     */
    public $PickUpLocation;
    /**
     * The Telephone
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgTelephone
     */
    public $Telephone;
    /**
     * The Vendor
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgCompanyNameType
     */
    public $Vendor;
    /**
     * The Email
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgEmailType
     */
    public $Email;
    /**
     * The TPA_Extensions
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgTPA_ExtensionsType
     */
    public $TPA_Extensions;
    /**
     * The PickUpDateTime
     * @var string
     */
    public $PickUpDateTime;
    /**
     * Constructor method for VehicleRetrieveResRQAdditionalInfoType
     * @uses DgVehicleRetrieveResRQAdditionalInfoType::setPickUpLocation()
     * @uses DgVehicleRetrieveResRQAdditionalInfoType::setTelephone()
     * @uses DgVehicleRetrieveResRQAdditionalInfoType::setVendor()
     * @uses DgVehicleRetrieveResRQAdditionalInfoType::setEmail()
     * @uses DgVehicleRetrieveResRQAdditionalInfoType::setTPA_Extensions()
     * @uses DgVehicleRetrieveResRQAdditionalInfoType::setPickUpDateTime()
     * @param \dgsoft\StructType\DgLocationType $pickUpLocation
     * @param \dgsoft\StructType\DgTelephone $telephone
     * @param \dgsoft\StructType\DgCompanyNameType $vendor
     * @param \dgsoft\StructType\DgEmailType $email
     * @param \dgsoft\StructType\DgTPA_ExtensionsType $tPA_Extensions
     * @param string $pickUpDateTime
     */
    public function __construct(\dgsoft\StructType\DgLocationType $pickUpLocation = null, \dgsoft\StructType\DgTelephone $telephone = null, \dgsoft\StructType\DgCompanyNameType $vendor = null, \dgsoft\StructType\DgEmailType $email = null, \dgsoft\StructType\DgTPA_ExtensionsType $tPA_Extensions = null, $pickUpDateTime = null)
    {
        $this
            ->setPickUpLocation($pickUpLocation)
            ->setTelephone($telephone)
            ->setVendor($vendor)
            ->setEmail($email)
            ->setTPA_Extensions($tPA_Extensions)
            ->setPickUpDateTime($pickUpDateTime);
    }
    /**
     * Get PickUpLocation value
     * @return \dgsoft\StructType\DgLocationType|null
     */
    public function getPickUpLocation()
    {
        return $this->PickUpLocation;
    }
    /**
     * Set PickUpLocation value
     * @param \dgsoft\StructType\DgLocationType $pickUpLocation
     * @return \dgsoft\StructType\DgVehicleRetrieveResRQAdditionalInfoType
     */
    public function setPickUpLocation(\dgsoft\StructType\DgLocationType $pickUpLocation = null)
    {
        $this->PickUpLocation = $pickUpLocation;
        return $this;
    }
    /**
     * Get Telephone value
     * @return \dgsoft\StructType\DgTelephone|null
     */
    public function getTelephone()
    {
        return $this->Telephone;
    }
    /**
     * Set Telephone value
     * @param \dgsoft\StructType\DgTelephone $telephone
     * @return \dgsoft\StructType\DgVehicleRetrieveResRQAdditionalInfoType
     */
    public function setTelephone(\dgsoft\StructType\DgTelephone $telephone = null)
    {
        $this->Telephone = $telephone;
        return $this;
    }
    /**
     * Get Vendor value
     * @return \dgsoft\StructType\DgCompanyNameType|null
     */
    public function getVendor()
    {
        return $this->Vendor;
    }
    /**
     * Set Vendor value
     * @param \dgsoft\StructType\DgCompanyNameType $vendor
     * @return \dgsoft\StructType\DgVehicleRetrieveResRQAdditionalInfoType
     */
    public function setVendor(\dgsoft\StructType\DgCompanyNameType $vendor = null)
    {
        $this->Vendor = $vendor;
        return $this;
    }
    /**
     * Get Email value
     * @return \dgsoft\StructType\DgEmailType|null
     */
    public function getEmail()
    {
        return $this->Email;
    }
    /**
     * Set Email value
     * @param \dgsoft\StructType\DgEmailType $email
     * @return \dgsoft\StructType\DgVehicleRetrieveResRQAdditionalInfoType
     */
    public function setEmail(\dgsoft\StructType\DgEmailType $email = null)
    {
        $this->Email = $email;
        return $this;
    }
    /**
     * Get TPA_Extensions value
     * @return \dgsoft\StructType\DgTPA_ExtensionsType|null
     */
    public function getTPA_Extensions()
    {
        return $this->TPA_Extensions;
    }
    /**
     * Set TPA_Extensions value
     * @param \dgsoft\StructType\DgTPA_ExtensionsType $tPA_Extensions
     * @return \dgsoft\StructType\DgVehicleRetrieveResRQAdditionalInfoType
     */
    public function setTPA_Extensions(\dgsoft\StructType\DgTPA_ExtensionsType $tPA_Extensions = null)
    {
        $this->TPA_Extensions = $tPA_Extensions;
        return $this;
    }
    /**
     * Get PickUpDateTime value
     * @return string|null
     */
    public function getPickUpDateTime()
    {
        return $this->PickUpDateTime;
    }
    /**
     * Set PickUpDateTime value
     * @param string $pickUpDateTime
     * @return \dgsoft\StructType\DgVehicleRetrieveResRQAdditionalInfoType
     */
    public function setPickUpDateTime($pickUpDateTime = null)
    {
        // validation for constraint: string
        if (!is_null($pickUpDateTime) && !is_string($pickUpDateTime)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($pickUpDateTime)), __LINE__);
        }
        $this->PickUpDateTime = $pickUpDateTime;
        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\DgVehicleRetrieveResRQAdditionalInfoType
     */
    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__;
    }
}
