<?php

namespace NineDotMedia\Viapost\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CalculateEstimatedDeliveryDateResponse Struct
 * @subpackage Structs
 */
class CalculateEstimatedDeliveryDateResponse extends AbstractStructBase
{
    /**
     * The CalculateEstimatedDeliveryDateResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $CalculateEstimatedDeliveryDateResult;
    /**
     * The DeliveryDate
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $DeliveryDate;
    /**
     * The sReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sReturnMessage;
    /**
     * Constructor method for CalculateEstimatedDeliveryDateResponse
     * @uses CalculateEstimatedDeliveryDateResponse::setCalculateEstimatedDeliveryDateResult()
     * @uses CalculateEstimatedDeliveryDateResponse::setDeliveryDate()
     * @uses CalculateEstimatedDeliveryDateResponse::setSReturnMessage()
     * @param bool $calculateEstimatedDeliveryDateResult
     * @param string $deliveryDate
     * @param string $sReturnMessage
     */
    public function __construct($calculateEstimatedDeliveryDateResult = null, $deliveryDate = null, $sReturnMessage = null)
    {
        $this
            ->setCalculateEstimatedDeliveryDateResult($calculateEstimatedDeliveryDateResult)
            ->setDeliveryDate($deliveryDate)
            ->setSReturnMessage($sReturnMessage);
    }
    /**
     * Get CalculateEstimatedDeliveryDateResult value
     * @return bool
     */
    public function getCalculateEstimatedDeliveryDateResult()
    {
        return $this->CalculateEstimatedDeliveryDateResult;
    }
    /**
     * Set CalculateEstimatedDeliveryDateResult value
     * @param bool $calculateEstimatedDeliveryDateResult
     * @return \NineDotMedia\Viapost\Struct\CalculateEstimatedDeliveryDateResponse
     */
    public function setCalculateEstimatedDeliveryDateResult($calculateEstimatedDeliveryDateResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($calculateEstimatedDeliveryDateResult) && !is_bool($calculateEstimatedDeliveryDateResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($calculateEstimatedDeliveryDateResult, true), gettype($calculateEstimatedDeliveryDateResult)), __LINE__);
        }
        $this->CalculateEstimatedDeliveryDateResult = $calculateEstimatedDeliveryDateResult;
        return $this;
    }
    /**
     * Get DeliveryDate value
     * @return string
     */
    public function getDeliveryDate()
    {
        return $this->DeliveryDate;
    }
    /**
     * Set DeliveryDate value
     * @param string $deliveryDate
     * @return \NineDotMedia\Viapost\Struct\CalculateEstimatedDeliveryDateResponse
     */
    public function setDeliveryDate($deliveryDate = null)
    {
        // validation for constraint: string
        if (!is_null($deliveryDate) && !is_string($deliveryDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($deliveryDate, true), gettype($deliveryDate)), __LINE__);
        }
        $this->DeliveryDate = $deliveryDate;
        return $this;
    }
    /**
     * Get sReturnMessage value
     * @return string|null
     */
    public function getSReturnMessage()
    {
        return $this->sReturnMessage;
    }
    /**
     * Set sReturnMessage value
     * @param string $sReturnMessage
     * @return \NineDotMedia\Viapost\Struct\CalculateEstimatedDeliveryDateResponse
     */
    public function setSReturnMessage($sReturnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($sReturnMessage) && !is_string($sReturnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sReturnMessage, true), gettype($sReturnMessage)), __LINE__);
        }
        $this->sReturnMessage = $sReturnMessage;
        return $this;
    }
}
