<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removeDestinations StructType
 * @subpackage Structs
 */
class RemoveDestinations extends XCommonMembersExtension
{
    /**
     * The destination
     * Meta information extracted from the WSDL
     * - maxOccurs: 16
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XH323TrunkDestination[]
     */
    public $destination;
    /**
     * Constructor method for removeDestinations
     * @uses RemoveDestinations::setDestination()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XH323TrunkDestination[] $destination
     */
    public function __construct(array $destination = array())
    {
        $this
            ->setDestination($destination);
    }
    /**
     * Get destination value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XH323TrunkDestination[]|null
     */
    public function getDestination()
    {
        return $this->destination;
    }
    /**
     * Set destination value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XH323TrunkDestination[] $destination
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveDestinations
     */
    public function setDestination(array $destination = array())
    {
        $this->destination = $destination;
        return $this;
    }
    /**
     * Add item to destination value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XH323TrunkDestination $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveDestinations
     */
    public function addToDestination(\\Losc\CucmBundle\Model\Webservice\StructType\XH323TrunkDestination $item)
    {
        $this->destination[] = $item;
        return $this;
    }
}
