<?php

namespace \Losc\CucmBundle\Model\Webservice\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for alarmConfigs StructType
 * @subpackage Structs
 */
class AlarmConfigs extends AbstractStructBase
{
    /**
     * The AlarmConfig
     * Meta information extracted from the WSDL
     * - maxOccurs: 4
     * - minOccurs: 1
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\RSyslogConfig[]
     */
    public $AlarmConfig;
    /**
     * Constructor method for alarmConfigs
     * @uses AlarmConfigs::setAlarmConfig()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RSyslogConfig[] $alarmConfig
     */
    public function __construct(array $alarmConfig = array())
    {
        $this
            ->setAlarmConfig($alarmConfig);
    }
    /**
     * Get AlarmConfig value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RSyslogConfig[]
     */
    public function getAlarmConfig()
    {
        return $this->AlarmConfig;
    }
    /**
     * Set AlarmConfig value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RSyslogConfig[] $alarmConfig
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AlarmConfigs
     */
    public function setAlarmConfig(array $alarmConfig = array())
    {
        $this->AlarmConfig = $alarmConfig;
        return $this;
    }
    /**
     * Add item to AlarmConfig value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RSyslogConfig $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AlarmConfigs
     */
    public function addToAlarmConfig(\\Losc\CucmBundle\Model\Webservice\StructType\RSyslogConfig $item)
    {
        $this->AlarmConfig[] = $item;
        return $this;
    }
}
