<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
 * StructType
 * @package Dg
 * @subpackage Structs
 */
class DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip extends DgTripFeaturesType
{
    /**
     * The StartDate
     * Meta informations extracted from the WSDL
     * - use: required
     * @var string
     */
    public $StartDate;
    /**
     * The EndDate
     * Meta informations extracted from the WSDL
     * - use: required
     * @var string
     */
    public $EndDate;
    /**
     * The Start
     * @var string
     */
    public $Start;
    /**
     * The Duration
     * @var string
     */
    public $Duration;
    /**
     * The End
     * @var string
     */
    public $End;
    /**
     * The DepositDate
     * @var string
     */
    public $DepositDate;
    /**
     * The FinalPayDate
     * @var string
     */
    public $FinalPayDate;
    /**
     * Constructor method for OTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     * @uses DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip::setStartDate()
     * @uses DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip::setEndDate()
     * @uses DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip::setStart()
     * @uses DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip::setDuration()
     * @uses DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip::setEnd()
     * @uses DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip::setDepositDate()
     * @uses DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip::setFinalPayDate()
     * @param string $startDate
     * @param string $endDate
     * @param string $start
     * @param string $duration
     * @param string $end
     * @param string $depositDate
     * @param string $finalPayDate
     */
    public function __construct($startDate = null, $endDate = null, $start = null, $duration = null, $end = null, $depositDate = null, $finalPayDate = null)
    {
        $this
            ->setStartDate($startDate)
            ->setEndDate($endDate)
            ->setStart($start)
            ->setDuration($duration)
            ->setEnd($end)
            ->setDepositDate($depositDate)
            ->setFinalPayDate($finalPayDate);
    }
    /**
     * Get StartDate value
     * @return string
     */
    public function getStartDate()
    {
        return $this->StartDate;
    }
    /**
     * Set StartDate value
     * @param string $startDate
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    public function setStartDate($startDate = null)
    {
        // validation for constraint: string
        if (!is_null($startDate) && !is_string($startDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($startDate)), __LINE__);
        }
        $this->StartDate = $startDate;
        return $this;
    }
    /**
     * Get EndDate value
     * @return string
     */
    public function getEndDate()
    {
        return $this->EndDate;
    }
    /**
     * Set EndDate value
     * @param string $endDate
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    public function setEndDate($endDate = null)
    {
        // validation for constraint: string
        if (!is_null($endDate) && !is_string($endDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($endDate)), __LINE__);
        }
        $this->EndDate = $endDate;
        return $this;
    }
    /**
     * Get Start value
     * @return string|null
     */
    public function getStart()
    {
        return $this->Start;
    }
    /**
     * Set Start value
     * @param string $start
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    public function setStart($start = null)
    {
        // validation for constraint: string
        if (!is_null($start) && !is_string($start)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($start)), __LINE__);
        }
        $this->Start = $start;
        return $this;
    }
    /**
     * Get Duration value
     * @return string|null
     */
    public function getDuration()
    {
        return $this->Duration;
    }
    /**
     * Set Duration value
     * @param string $duration
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    public function setDuration($duration = null)
    {
        // validation for constraint: string
        if (!is_null($duration) && !is_string($duration)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($duration)), __LINE__);
        }
        $this->Duration = $duration;
        return $this;
    }
    /**
     * Get End value
     * @return string|null
     */
    public function getEnd()
    {
        return $this->End;
    }
    /**
     * Set End value
     * @param string $end
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    public function setEnd($end = null)
    {
        // validation for constraint: string
        if (!is_null($end) && !is_string($end)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($end)), __LINE__);
        }
        $this->End = $end;
        return $this;
    }
    /**
     * Get DepositDate value
     * @return string|null
     */
    public function getDepositDate()
    {
        return $this->DepositDate;
    }
    /**
     * Set DepositDate value
     * @param string $depositDate
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    public function setDepositDate($depositDate = null)
    {
        // validation for constraint: string
        if (!is_null($depositDate) && !is_string($depositDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($depositDate)), __LINE__);
        }
        $this->DepositDate = $depositDate;
        return $this;
    }
    /**
     * Get FinalPayDate value
     * @return string|null
     */
    public function getFinalPayDate()
    {
        return $this->FinalPayDate;
    }
    /**
     * Set FinalPayDate value
     * @param string $finalPayDate
     * @return \dgsoft\StructType\DgOTA_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    public function setFinalPayDate($finalPayDate = null)
    {
        // validation for constraint: string
        if (!is_null($finalPayDate) && !is_string($finalPayDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($finalPayDate)), __LINE__);
        }
        $this->FinalPayDate = $finalPayDate;
        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_InsurancePlanSearchRQSearchTripInfoCoveredTrip
     */
    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__;
    }
}
