<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CalculateLetterCostSimpleBatchWithExceptionsResponse
 * StructType
 * @subpackage Structs
 */
class CalculateLetterCostSimpleBatchWithExceptionsResponse extends AbstractStructBase
{
    /**
     * The CalculateLetterCostSimpleBatchWithExceptionsResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $CalculateLetterCostSimpleBatchWithExceptionsResult;
    /**
     * The dNetCost
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var float
     */
    public $dNetCost;
    /**
     * The dVAT
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var float
     */
    public $dVAT;
    /**
     * The sReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sReturnMessage;
    /**
     * Constructor method for CalculateLetterCostSimpleBatchWithExceptionsResponse
     * @uses CalculateLetterCostSimpleBatchWithExceptionsResponse::setCalculateLetterCostSimpleBatchWithExceptionsResult()
     * @uses CalculateLetterCostSimpleBatchWithExceptionsResponse::setDNetCost()
     * @uses CalculateLetterCostSimpleBatchWithExceptionsResponse::setDVAT()
     * @uses CalculateLetterCostSimpleBatchWithExceptionsResponse::setSReturnMessage()
     * @param bool $calculateLetterCostSimpleBatchWithExceptionsResult
     * @param float $dNetCost
     * @param float $dVAT
     * @param string $sReturnMessage
     */
    public function __construct($calculateLetterCostSimpleBatchWithExceptionsResult = null, $dNetCost = null, $dVAT = null, $sReturnMessage = null)
    {
        $this
            ->setCalculateLetterCostSimpleBatchWithExceptionsResult($calculateLetterCostSimpleBatchWithExceptionsResult)
            ->setDNetCost($dNetCost)
            ->setDVAT($dVAT)
            ->setSReturnMessage($sReturnMessage);
    }
    /**
     * Get CalculateLetterCostSimpleBatchWithExceptionsResult value
     * @return bool
     */
    public function getCalculateLetterCostSimpleBatchWithExceptionsResult()
    {
        return $this->CalculateLetterCostSimpleBatchWithExceptionsResult;
    }
    /**
     * Set CalculateLetterCostSimpleBatchWithExceptionsResult value
     * @param bool $calculateLetterCostSimpleBatchWithExceptionsResult
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptionsResponse
     */
    public function setCalculateLetterCostSimpleBatchWithExceptionsResult($calculateLetterCostSimpleBatchWithExceptionsResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($calculateLetterCostSimpleBatchWithExceptionsResult) && !is_bool($calculateLetterCostSimpleBatchWithExceptionsResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($calculateLetterCostSimpleBatchWithExceptionsResult, true), gettype($calculateLetterCostSimpleBatchWithExceptionsResult)), __LINE__);
        }
        $this->CalculateLetterCostSimpleBatchWithExceptionsResult = $calculateLetterCostSimpleBatchWithExceptionsResult;
        return $this;
    }
    /**
     * Get dNetCost value
     * @return float
     */
    public function getDNetCost()
    {
        return $this->dNetCost;
    }
    /**
     * Set dNetCost value
     * @param float $dNetCost
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptionsResponse
     */
    public function setDNetCost($dNetCost = null)
    {
        // validation for constraint: float
        if (!is_null($dNetCost) && !(is_float($dNetCost) || is_numeric($dNetCost))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($dNetCost, true), gettype($dNetCost)), __LINE__);
        }
        $this->dNetCost = $dNetCost;
        return $this;
    }
    /**
     * Get dVAT value
     * @return float
     */
    public function getDVAT()
    {
        return $this->dVAT;
    }
    /**
     * Set dVAT value
     * @param float $dVAT
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptionsResponse
     */
    public function setDVAT($dVAT = null)
    {
        // validation for constraint: float
        if (!is_null($dVAT) && !(is_float($dVAT) || is_numeric($dVAT))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($dVAT, true), gettype($dVAT)), __LINE__);
        }
        $this->dVAT = $dVAT;
        return $this;
    }
    /**
     * Get sReturnMessage value
     * @return string|null
     */
    public function getSReturnMessage()
    {
        return $this->sReturnMessage;
    }
    /**
     * Set sReturnMessage value
     * @param string $sReturnMessage
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptionsResponse
     */
    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;
    }
}
