<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removeLocales StructType
 * @subpackage Structs
 */
class RemoveLocales extends XCommonMembersExtension
{
    /**
     * The locale
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XMobileVoiceMember[]
     */
    public $locale;
    /**
     * Constructor method for removeLocales
     * @uses RemoveLocales::setLocale()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XMobileVoiceMember[] $locale
     */
    public function __construct(array $locale = array())
    {
        $this
            ->setLocale($locale);
    }
    /**
     * Get locale value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XMobileVoiceMember[]
     */
    public function getLocale()
    {
        return $this->locale;
    }
    /**
     * Set locale value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XMobileVoiceMember[] $locale
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLocales
     */
    public function setLocale(array $locale = array())
    {
        $this->locale = $locale;
        return $this;
    }
    /**
     * Add item to locale value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XMobileVoiceMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLocales
     */
    public function addToLocale(\\Losc\CucmBundle\Model\Webservice\StructType\XMobileVoiceMember $item)
    {
        $this->locale[] = $item;
        return $this;
    }
}
