<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removeAssociatedTrunks StructType
 * @subpackage Structs
 */
class RemoveAssociatedTrunks 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 removeAssociatedTrunks
     * @uses RemoveAssociatedTrunks::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\RemoveAssociatedTrunks
     */
    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\RemoveAssociatedTrunks
     */
    public function addToAssociatedTrunk(\\Losc\CucmBundle\Model\Webservice\StructType\XCcdRequestingServiceMember $item)
    {
        $this->associatedTrunk[] = $item;
        return $this;
    }
}
