<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for extensionsInfo StructType
 * Meta information extracted from the WSDL
 * - documentation: These tags are for Quick User/Phone Add page
 * @subpackage Structs
 */
class ExtensionsInfo extends XCommonMembersExtension
{
    /**
     * The extension
     * Meta information extracted from the WSDL
     * - documentation: These tags are for Quick User/Phone Add page
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XExtension[]
     */
    public $extension;
    /**
     * Constructor method for extensionsInfo
     * @uses ExtensionsInfo::setExtension()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XExtension[] $extension
     */
    public function __construct(array $extension = array())
    {
        $this
            ->setExtension($extension);
    }
    /**
     * Get extension value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XExtension[]|null
     */
    public function getExtension()
    {
        return $this->extension;
    }
    /**
     * Set extension value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XExtension[] $extension
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\ExtensionsInfo
     */
    public function setExtension(array $extension = array())
    {
        $this->extension = $extension;
        return $this;
    }
    /**
     * Add item to extension value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XExtension $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\ExtensionsInfo
     */
    public function addToExtension(\\Losc\CucmBundle\Model\Webservice\StructType\XExtension $item)
    {
        $this->extension[] = $item;
        return $this;
    }
}
