<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for addOnModules StructType
 * Meta information extracted from the WSDL
 * - documentation: Additional modules attached to the Phone.There can be 0,1 or 2. | Additional modules attached to the Phone.There can be 0,1, 2 or 3.
 * @subpackage Structs
 */
class AddOnModules extends AbstractStructBase
{
    /**
     * The addOnModule
     * Meta information extracted from the WSDL
     * - maxOccurs: 2
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XAddOnModule[]
     */
    public $addOnModule;
    /**
     * Constructor method for addOnModules
     * @uses AddOnModules::setAddOnModule()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XAddOnModule[] $addOnModule
     */
    public function __construct(array $addOnModule = array())
    {
        $this
            ->setAddOnModule($addOnModule);
    }
    /**
     * Get addOnModule value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XAddOnModule[]|null
     */
    public function getAddOnModule()
    {
        return $this->addOnModule;
    }
    /**
     * Set addOnModule value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XAddOnModule[] $addOnModule
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddOnModules
     */
    public function setAddOnModule(array $addOnModule = array())
    {
        $this->addOnModule = $addOnModule;
        return $this;
    }
    /**
     * Add item to addOnModule value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XAddOnModule $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddOnModules
     */
    public function addToAddOnModule(\\Losc\CucmBundle\Model\Webservice\StructType\XAddOnModule $item)
    {
        $this->addOnModule[] = $item;
        return $this;
    }
}
