<?php

namespace Straxus\FarfetchSDK\Model;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CreateProductWithUuidAndVatResponse Model
 * @subpackage Structs
 */
class CreateProductWithUuidAndVatResponse extends AbstractStructBase
{
    /**
     * The CreateProductWithUuidAndVatResult
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $CreateProductWithUuidAndVatResult;
    /**
     * The articleId
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $articleId;
    /**
     * Constructor method for CreateProductWithUuidAndVatResponse
     * @uses CreateProductWithUuidAndVatResponse::setCreateProductWithUuidAndVatResult()
     * @uses CreateProductWithUuidAndVatResponse::setArticleId()
     * @param bool $createProductWithUuidAndVatResult
     * @param int $articleId
     */
    public function __construct($createProductWithUuidAndVatResult = null, $articleId = null)
    {
        $this
            ->setCreateProductWithUuidAndVatResult($createProductWithUuidAndVatResult)
            ->setArticleId($articleId);
    }
    /**
     * Get CreateProductWithUuidAndVatResult value
     * @return bool
     */
    public function getCreateProductWithUuidAndVatResult()
    {
        return $this->CreateProductWithUuidAndVatResult;
    }
    /**
     * Set CreateProductWithUuidAndVatResult value
     * @param bool $createProductWithUuidAndVatResult
     * @return \Straxus\FarfetchSDK\Model\CreateProductWithUuidAndVatResponse
     */
    public function setCreateProductWithUuidAndVatResult($createProductWithUuidAndVatResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($createProductWithUuidAndVatResult) && !is_bool($createProductWithUuidAndVatResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($createProductWithUuidAndVatResult, true), gettype($createProductWithUuidAndVatResult)), __LINE__);
        }
        $this->CreateProductWithUuidAndVatResult = $createProductWithUuidAndVatResult;
        return $this;
    }
    /**
     * Get articleId value
     * @return int
     */
    public function getArticleId()
    {
        return $this->articleId;
    }
    /**
     * Set articleId value
     * @param int $articleId
     * @return \Straxus\FarfetchSDK\Model\CreateProductWithUuidAndVatResponse
     */
    public function setArticleId($articleId = null)
    {
        // validation for constraint: int
        if (!is_null($articleId) && !(is_int($articleId) || ctype_digit($articleId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($articleId, true), gettype($articleId)), __LINE__);
        }
        $this->articleId = $articleId;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \Straxus\FarfetchSDK\Model\CreateProductWithUuidAndVatResponse
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
