<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetLimitationCounters-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetLimitationCounters-Response
 * @subpackage Structs
 */
class GetLimitationCounters_Response extends ExtensibleDataContract
{
    /**
     * The Counters
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfLimitationCounterData
     */
    public $Counters;
    /**
     * Constructor method for GetLimitationCounters-Response
     * @uses GetLimitationCounters_Response::setCounters()
     * @param \patest\ArrayType\ArrayOfLimitationCounterData $counters
     */
    public function __construct(\patest\ArrayType\ArrayOfLimitationCounterData $counters = null)
    {
        $this
            ->setCounters($counters);
    }
    /**
     * Get Counters 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\ArrayOfLimitationCounterData|null
     */
    public function getCounters()
    {
        return isset($this->Counters) ? $this->Counters : null;
    }
    /**
     * Set Counters 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\ArrayOfLimitationCounterData $counters
     * @return \patest\StructType\GetLimitationCounters_Response
     */
    public function setCounters(\patest\ArrayType\ArrayOfLimitationCounterData $counters = null)
    {
        if (is_null($counters) || (is_array($counters) && empty($counters))) {
            unset($this->Counters);
        } else {
            $this->Counters = $counters;
        }
        return $this;
    }
}
