<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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