<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CalculateLetterCostSimpleBatchWithExceptions StructType
 * @subpackage Structs
 */
class CalculateLetterCostSimpleBatchWithExceptions 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 iNumberOfPages
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $iNumberOfPages;
    /**
     * The iNumberOfLetters
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $iNumberOfLetters;
    /**
     * The iNumberOfExceptions
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $iNumberOfExceptions;
    /**
     * 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 sReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sReturnMessage;
    /**
     * Constructor method for CalculateLetterCostSimpleBatchWithExceptions
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setBColour()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setBDoubleSided()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setINumberOfPages()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setINumberOfLetters()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setINumberOfExceptions()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setDNetCost()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setDVAT()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setSLoginToken()
     * @uses CalculateLetterCostSimpleBatchWithExceptions::setSReturnMessage()
     * @param bool $bColour
     * @param bool $bDoubleSided
     * @param int $iNumberOfPages
     * @param int $iNumberOfLetters
     * @param int $iNumberOfExceptions
     * @param float $dNetCost
     * @param float $dVAT
     * @param string $sLoginToken
     * @param string $sReturnMessage
     */
    public function __construct($bColour = null, $bDoubleSided = null, $iNumberOfPages = null, $iNumberOfLetters = null, $iNumberOfExceptions = null, $dNetCost = null, $dVAT = null, $sLoginToken = null, $sReturnMessage = null)
    {
        $this
            ->setBColour($bColour)
            ->setBDoubleSided($bDoubleSided)
            ->setINumberOfPages($iNumberOfPages)
            ->setINumberOfLetters($iNumberOfLetters)
            ->setINumberOfExceptions($iNumberOfExceptions)
            ->setDNetCost($dNetCost)
            ->setDVAT($dVAT)
            ->setSLoginToken($sLoginToken)
            ->setSReturnMessage($sReturnMessage);
    }
    /**
     * Get bColour value
     * @return bool
     */
    public function getBColour()
    {
        return $this->bColour;
    }
    /**
     * Set bColour value
     * @param bool $bColour
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptions
     */
    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\CalculateLetterCostSimpleBatchWithExceptions
     */
    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 iNumberOfPages value
     * @return int
     */
    public function getINumberOfPages()
    {
        return $this->iNumberOfPages;
    }
    /**
     * Set iNumberOfPages value
     * @param int $iNumberOfPages
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptions
     */
    public function setINumberOfPages($iNumberOfPages = null)
    {
        // validation for constraint: int
        if (!is_null($iNumberOfPages) && !(is_int($iNumberOfPages) || ctype_digit($iNumberOfPages))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($iNumberOfPages, true), gettype($iNumberOfPages)), __LINE__);
        }
        $this->iNumberOfPages = $iNumberOfPages;
        return $this;
    }
    /**
     * Get iNumberOfLetters value
     * @return int
     */
    public function getINumberOfLetters()
    {
        return $this->iNumberOfLetters;
    }
    /**
     * Set iNumberOfLetters value
     * @param int $iNumberOfLetters
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptions
     */
    public function setINumberOfLetters($iNumberOfLetters = null)
    {
        // validation for constraint: int
        if (!is_null($iNumberOfLetters) && !(is_int($iNumberOfLetters) || ctype_digit($iNumberOfLetters))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($iNumberOfLetters, true), gettype($iNumberOfLetters)), __LINE__);
        }
        $this->iNumberOfLetters = $iNumberOfLetters;
        return $this;
    }
    /**
     * Get iNumberOfExceptions value
     * @return int
     */
    public function getINumberOfExceptions()
    {
        return $this->iNumberOfExceptions;
    }
    /**
     * Set iNumberOfExceptions value
     * @param int $iNumberOfExceptions
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptions
     */
    public function setINumberOfExceptions($iNumberOfExceptions = null)
    {
        // validation for constraint: int
        if (!is_null($iNumberOfExceptions) && !(is_int($iNumberOfExceptions) || ctype_digit($iNumberOfExceptions))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($iNumberOfExceptions, true), gettype($iNumberOfExceptions)), __LINE__);
        }
        $this->iNumberOfExceptions = $iNumberOfExceptions;
        return $this;
    }
    /**
     * Get dNetCost value
     * @return float
     */
    public function getDNetCost()
    {
        return $this->dNetCost;
    }
    /**
     * Set dNetCost value
     * @param float $dNetCost
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptions
     */
    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\CalculateLetterCostSimpleBatchWithExceptions
     */
    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\CalculateLetterCostSimpleBatchWithExceptions
     */
    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 sReturnMessage value
     * @return string|null
     */
    public function getSReturnMessage()
    {
        return $this->sReturnMessage;
    }
    /**
     * Set sReturnMessage value
     * @param string $sReturnMessage
     * @return \\NineDotMedia\viapost-php\CalculateLetterCostSimpleBatchWithExceptions
     */
    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;
    }
}
