<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for associatedRemoteDestination StructType
 * Meta information extracted from the WSDL
 * - documentation: Read-Only. List of the remoteDestination entries associated with this TodAccess.
 * @subpackage Structs
 */
class AssociatedRemoteDestination extends AbstractStructBase
{
    /**
     * The remoteDestination
     * Meta information extracted from the WSDL
     * - documentation: Name of the remoteDestination
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var string[]
     */
    public $remoteDestination;
    /**
     * Constructor method for associatedRemoteDestination
     * @uses AssociatedRemoteDestination::setRemoteDestination()
     * @param string[] $remoteDestination
     */
    public function __construct(array $remoteDestination = array())
    {
        $this
            ->setRemoteDestination($remoteDestination);
    }
    /**
     * Get remoteDestination value
     * @return string[]|null
     */
    public function getRemoteDestination()
    {
        return $this->remoteDestination;
    }
    /**
     * Set remoteDestination value
     * @param string[] $remoteDestination
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AssociatedRemoteDestination
     */
    public function setRemoteDestination(array $remoteDestination = array())
    {
        $this->remoteDestination = $remoteDestination;
        return $this;
    }
    /**
     * Add item to remoteDestination value
     * @throws \InvalidArgumentException
     * @param string $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AssociatedRemoteDestination
     */
    public function addToRemoteDestination($item)
    {
        $this->remoteDestination[] = $item;
        return $this;
    }
}
