<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for associatedCucms StructType
 * @subpackage Structs
 */
class AssociatedCucms extends XCommonMembersExtension
{
    /**
     * The associatedCucm
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XSafForwarderMember[]
     */
    public $associatedCucm;
    /**
     * Constructor method for associatedCucms
     * @uses AssociatedCucms::setAssociatedCucm()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSafForwarderMember[] $associatedCucm
     */
    public function __construct(array $associatedCucm = array())
    {
        $this
            ->setAssociatedCucm($associatedCucm);
    }
    /**
     * Get associatedCucm value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XSafForwarderMember[]|null
     */
    public function getAssociatedCucm()
    {
        return $this->associatedCucm;
    }
    /**
     * Set associatedCucm value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSafForwarderMember[] $associatedCucm
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AssociatedCucms
     */
    public function setAssociatedCucm(array $associatedCucm = array())
    {
        $this->associatedCucm = $associatedCucm;
        return $this;
    }
    /**
     * Add item to associatedCucm value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSafForwarderMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AssociatedCucms
     */
    public function addToAssociatedCucm(\\Losc\CucmBundle\Model\Webservice\StructType\XSafForwarderMember $item)
    {
        $this->associatedCucm[] = $item;
        return $this;
    }
}
