<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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