<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CreateExternalImportedBarcode-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:CreateExternalImportedBarcode-Response
 * @subpackage Structs
 */
class CreateExternalImportedBarcode_Response extends ExtensibleDataContract
{
    /**
     * The HasSucceeded
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $HasSucceeded;
    /**
     * Constructor method for CreateExternalImportedBarcode-Response
     * @uses CreateExternalImportedBarcode_Response::setHasSucceeded()
     * @param bool $hasSucceeded
     */
    public function __construct($hasSucceeded = null)
    {
        $this
            ->setHasSucceeded($hasSucceeded);
    }
    /**
     * Get HasSucceeded value
     * @return bool|null
     */
    public function getHasSucceeded()
    {
        return $this->HasSucceeded;
    }
    /**
     * Set HasSucceeded value
     * @param bool $hasSucceeded
     * @return \patest\StructType\CreateExternalImportedBarcode_Response
     */
    public function setHasSucceeded($hasSucceeded = null)
    {
        // validation for constraint: boolean
        if (!is_null($hasSucceeded) && !is_bool($hasSucceeded)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($hasSucceeded, true), gettype($hasSucceeded)), __LINE__);
        }
        $this->HasSucceeded = $hasSucceeded;
        return $this;
    }
}
