<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CalculateEstimatedDeliveryDateNowResponse Struct
 * @subpackage Structs
 */
class CalculateEstimatedDeliveryDateNowResponse extends AbstractStructBase
{
    /**
     * The CalculateEstimatedDeliveryDateNowResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $CalculateEstimatedDeliveryDateNowResult;
    /**
     * 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 CalculateEstimatedDeliveryDateNowResponse
     * @uses CalculateEstimatedDeliveryDateNowResponse::setCalculateEstimatedDeliveryDateNowResult()
     * @uses CalculateEstimatedDeliveryDateNowResponse::setDeliveryDate()
     * @uses CalculateEstimatedDeliveryDateNowResponse::setSReturnMessage()
     * @param bool $calculateEstimatedDeliveryDateNowResult
     * @param string $deliveryDate
     * @param string $sReturnMessage
     */
    public function __construct($calculateEstimatedDeliveryDateNowResult = null, $deliveryDate = null, $sReturnMessage = null)
    {
        $this
            ->setCalculateEstimatedDeliveryDateNowResult($calculateEstimatedDeliveryDateNowResult)
            ->setDeliveryDate($deliveryDate)
            ->setSReturnMessage($sReturnMessage);
    }
    /**
     * Get CalculateEstimatedDeliveryDateNowResult value
     * @return bool
     */
    public function getCalculateEstimatedDeliveryDateNowResult()
    {
        return $this->CalculateEstimatedDeliveryDateNowResult;
    }
    /**
     * Set CalculateEstimatedDeliveryDateNowResult value
     * @param bool $calculateEstimatedDeliveryDateNowResult
     * @return \NineDotMedia\viapost-php\Struct\CalculateEstimatedDeliveryDateNowResponse
     */
    public function setCalculateEstimatedDeliveryDateNowResult($calculateEstimatedDeliveryDateNowResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($calculateEstimatedDeliveryDateNowResult) && !is_bool($calculateEstimatedDeliveryDateNowResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($calculateEstimatedDeliveryDateNowResult, true), gettype($calculateEstimatedDeliveryDateNowResult)), __LINE__);
        }
        $this->CalculateEstimatedDeliveryDateNowResult = $calculateEstimatedDeliveryDateNowResult;
        return $this;
    }
    /**
     * Get DeliveryDate value
     * @return string
     */
    public function getDeliveryDate()
    {
        return $this->DeliveryDate;
    }
    /**
     * Set DeliveryDate value
     * @param string $deliveryDate
     * @return \NineDotMedia\viapost-php\Struct\CalculateEstimatedDeliveryDateNowResponse
     */
    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-php\Struct\CalculateEstimatedDeliveryDateNowResponse
     */
    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;
    }
}
