<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for addAssociatedTrunks StructType
 * @subpackage Structs
 */
class AddAssociatedTrunks extends XCommonMembersExtension
{
    /**
     * The associatedTrunk
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XCcdRequestingServiceMember[]
     */
    public $associatedTrunk;
    /**
     * Constructor method for addAssociatedTrunks
     * @uses AddAssociatedTrunks::setAssociatedTrunk()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCcdRequestingServiceMember[] $associatedTrunk
     */
    public function __construct(array $associatedTrunk = array())
    {
        $this
            ->setAssociatedTrunk($associatedTrunk);
    }
    /**
     * Get associatedTrunk value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XCcdRequestingServiceMember[]
     */
    public function getAssociatedTrunk()
    {
        return $this->associatedTrunk;
    }
    /**
     * Set associatedTrunk value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCcdRequestingServiceMember[] $associatedTrunk
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddAssociatedTrunks
     */
    public function setAssociatedTrunk(array $associatedTrunk = array())
    {
        $this->associatedTrunk = $associatedTrunk;
        return $this;
    }
    /**
     * Add item to associatedTrunk value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCcdRequestingServiceMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddAssociatedTrunks
     */
    public function addToAssociatedTrunk(\\Losc\CucmBundle\Model\Webservice\StructType\XCcdRequestingServiceMember $item)
    {
        $this->associatedTrunk[] = $item;
        return $this;
    }
}
