<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CreateBarcodeForProduct-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:CreateBarcodeForProduct-Response
 * @subpackage Structs
 */
class CreateBarcodeForProduct_Response extends ExtensibleDataContract
{
    /**
     * The Barcodes
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfstring
     */
    public $Barcodes;
    /**
     * The Faults
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidAccessControlFaulthpjoQDea
     */
    public $Faults;
    /**
     * Constructor method for CreateBarcodeForProduct-Response
     * @uses CreateBarcodeForProduct_Response::setBarcodes()
     * @uses CreateBarcodeForProduct_Response::setFaults()
     * @param \patest\ArrayType\ArrayOfstring $barcodes
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidAccessControlFaulthpjoQDea $faults
     */
    public function __construct(\patest\ArrayType\ArrayOfstring $barcodes = null, \patest\ArrayType\ArrayOfKeyValueOfguidAccessControlFaulthpjoQDea $faults = null)
    {
        $this
            ->setBarcodes($barcodes)
            ->setFaults($faults);
    }
    /**
     * Get Barcodes value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\ArrayType\ArrayOfstring|null
     */
    public function getBarcodes()
    {
        return isset($this->Barcodes) ? $this->Barcodes : null;
    }
    /**
     * Set Barcodes value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\ArrayType\ArrayOfstring $barcodes
     * @return \patest\StructType\CreateBarcodeForProduct_Response
     */
    public function setBarcodes(\patest\ArrayType\ArrayOfstring $barcodes = null)
    {
        if (is_null($barcodes) || (is_array($barcodes) && empty($barcodes))) {
            unset($this->Barcodes);
        } else {
            $this->Barcodes = $barcodes;
        }
        return $this;
    }
    /**
     * Get Faults value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\ArrayType\ArrayOfKeyValueOfguidAccessControlFaulthpjoQDea|null
     */
    public function getFaults()
    {
        return isset($this->Faults) ? $this->Faults : null;
    }
    /**
     * Set Faults value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidAccessControlFaulthpjoQDea $faults
     * @return \patest\StructType\CreateBarcodeForProduct_Response
     */
    public function setFaults(\patest\ArrayType\ArrayOfKeyValueOfguidAccessControlFaulthpjoQDea $faults = null)
    {
        if (is_null($faults) || (is_array($faults) && empty($faults))) {
            unset($this->Faults);
        } else {
            $this->Faults = $faults;
        }
        return $this;
    }
}
