<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removeLanguages StructType
 * @subpackage Structs
 */
class RemoveLanguages extends XCommonMembersExtension
{
    /**
     * The language
     * Meta information extracted from the WSDL
     * - maxOccurs: 9
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XSelfProvisionRemove[]
     */
    public $language;
    /**
     * Constructor method for removeLanguages
     * @uses RemoveLanguages::setLanguage()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSelfProvisionRemove[] $language
     */
    public function __construct(array $language = array())
    {
        $this
            ->setLanguage($language);
    }
    /**
     * Get language value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XSelfProvisionRemove[]|null
     */
    public function getLanguage()
    {
        return $this->language;
    }
    /**
     * Set language value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSelfProvisionRemove[] $language
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages
     */
    public function setLanguage(array $language = array())
    {
        $this->language = $language;
        return $this;
    }
    /**
     * Add item to language value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSelfProvisionRemove $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages
     */
    public function addToLanguage(\\Losc\CucmBundle\Model\Webservice\StructType\XSelfProvisionRemove $item)
    {
        $this->language[] = $item;
        return $this;
    }
}
