<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CalculateLetterCostComplexBatch StructType
 * @subpackage Structs
 */
class CalculateLetterCostComplexBatch extends AbstractStructBase
{
    /**
     * The bColour
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $bColour;
    /**
     * The bDoubleSided
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $bDoubleSided;
    /**
     * 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 sLoginToken
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sLoginToken;
    /**
     * The BatchDetails
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\viapost-php\MailBatch
     */
    public $BatchDetails;
    /**
     * The sReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sReturnMessage;
    /**
     * Constructor method for CalculateLetterCostComplexBatch
     * @uses CalculateLetterCostComplexBatch::setBColour()
     * @uses CalculateLetterCostComplexBatch::setBDoubleSided()
     * @uses CalculateLetterCostComplexBatch::setDNetCost()
     * @uses CalculateLetterCostComplexBatch::setDVAT()
     * @uses CalculateLetterCostComplexBatch::setSLoginToken()
     * @uses CalculateLetterCostComplexBatch::setBatchDetails()
     * @uses CalculateLetterCostComplexBatch::setSReturnMessage()
     * @param bool $bColour
     * @param bool $bDoubleSided
     * @param float $dNetCost
     * @param float $dVAT
     * @param string $sLoginToken
     * @param \\NineDotMedia\viapost-php\MailBatch $batchDetails
     * @param string $sReturnMessage
     */
    public function __construct($bColour = null, $bDoubleSided = null, $dNetCost = null, $dVAT = null, $sLoginToken = null, \\NineDotMedia\viapost-php\MailBatch $batchDetails = null, $sReturnMessage = null)
    {
        $this
            ->setBColour($bColour)
            ->setBDoubleSided($bDoubleSided)
            ->setDNetCost($dNetCost)
            ->setDVAT($dVAT)
            ->setSLoginToken($sLoginToken)
            ->setBatchDetails($batchDetails)
            ->setSReturnMessage($sReturnMessage);
    }
    /**
     * Get bColour value
     * @return bool
     */
    public function getBColour()
    {
        return $this->bColour;
    }
    /**
     * Set bColour value
     * @param bool $bColour
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostComplexBatch
     */
    public function setBColour($bColour = null)
    {
        // validation for constraint: boolean
        if (!is_null($bColour) && !is_bool($bColour)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($bColour, true), gettype($bColour)), __LINE__);
        }
        $this->bColour = $bColour;
        return $this;
    }
    /**
     * Get bDoubleSided value
     * @return bool
     */
    public function getBDoubleSided()
    {
        return $this->bDoubleSided;
    }
    /**
     * Set bDoubleSided value
     * @param bool $bDoubleSided
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostComplexBatch
     */
    public function setBDoubleSided($bDoubleSided = null)
    {
        // validation for constraint: boolean
        if (!is_null($bDoubleSided) && !is_bool($bDoubleSided)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($bDoubleSided, true), gettype($bDoubleSided)), __LINE__);
        }
        $this->bDoubleSided = $bDoubleSided;
        return $this;
    }
    /**
     * Get dNetCost value
     * @return float
     */
    public function getDNetCost()
    {
        return $this->dNetCost;
    }
    /**
     * Set dNetCost value
     * @param float $dNetCost
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostComplexBatch
     */
    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\CalculateLetterCostComplexBatch
     */
    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 sLoginToken value
     * @return string|null
     */
    public function getSLoginToken()
    {
        return $this->sLoginToken;
    }
    /**
     * Set sLoginToken value
     * @param string $sLoginToken
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostComplexBatch
     */
    public function setSLoginToken($sLoginToken = null)
    {
        // validation for constraint: string
        if (!is_null($sLoginToken) && !is_string($sLoginToken)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sLoginToken, true), gettype($sLoginToken)), __LINE__);
        }
        $this->sLoginToken = $sLoginToken;
        return $this;
    }
    /**
     * Get BatchDetails value
     * @return \\NineDotMedia\viapost-php\MailBatch|null
     */
    public function getBatchDetails()
    {
        return $this->BatchDetails;
    }
    /**
     * Set BatchDetails value
     * @param \\NineDotMedia\viapost-php\MailBatch $batchDetails
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostComplexBatch
     */
    public function setBatchDetails(\\NineDotMedia\viapost-php\MailBatch $batchDetails = null)
    {
        $this->BatchDetails = $batchDetails;
        return $this;
    }
    /**
     * Get sReturnMessage value
     * @return string|null
     */
    public function getSReturnMessage()
    {
        return $this->sReturnMessage;
    }
    /**
     * Set sReturnMessage value
     * @param string $sReturnMessage
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostComplexBatch
     */
    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;
    }
}
