<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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