<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for addAccessControlGroupInfo StructType
 * @subpackage Structs
 */
class AddAccessControlGroupInfo extends XCommonMembersExtension
{
    /**
     * The accessControlGroupName
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\AccessControlGroupName[]
     */
    public $accessControlGroupName;
    /**
     * Constructor method for addAccessControlGroupInfo
     * @uses AddAccessControlGroupInfo::setAccessControlGroupName()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\AccessControlGroupName[] $accessControlGroupName
     */
    public function __construct(array $accessControlGroupName = array())
    {
        $this
            ->setAccessControlGroupName($accessControlGroupName);
    }
    /**
     * Get accessControlGroupName value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AccessControlGroupName[]|null
     */
    public function getAccessControlGroupName()
    {
        return $this->accessControlGroupName;
    }
    /**
     * Set accessControlGroupName value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\AccessControlGroupName[] $accessControlGroupName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddAccessControlGroupInfo
     */
    public function setAccessControlGroupName(array $accessControlGroupName = array())
    {
        $this->accessControlGroupName = $accessControlGroupName;
        return $this;
    }
    /**
     * Add item to accessControlGroupName value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\AccessControlGroupName $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddAccessControlGroupInfo
     */
    public function addToAccessControlGroupName(\\Losc\CucmBundle\Model\Webservice\StructType\AccessControlGroupName $item)
    {
        $this->accessControlGroupName[] = $item;
        return $this;
    }
}
