<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for directoryURIs StructType
 * Meta information extracted from the WSDL
 * - documentation: While updating, send all the URIs
 * @subpackage Structs
 */
class DirectoryURIs extends AbstractStructBase
{
    /**
     * The directoryUri
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XDirectoryUri[]
     */
    public $directoryUri;
    /**
     * Constructor method for directoryURIs
     * @uses DirectoryURIs::setDirectoryUri()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XDirectoryUri[] $directoryUri
     */
    public function __construct(array $directoryUri = array())
    {
        $this
            ->setDirectoryUri($directoryUri);
    }
    /**
     * Get directoryUri value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XDirectoryUri[]|null
     */
    public function getDirectoryUri()
    {
        return $this->directoryUri;
    }
    /**
     * Set directoryUri value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XDirectoryUri[] $directoryUri
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\DirectoryURIs
     */
    public function setDirectoryUri(array $directoryUri = array())
    {
        $this->directoryUri = $directoryUri;
        return $this;
    }
    /**
     * Add item to directoryUri value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XDirectoryUri $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\DirectoryURIs
     */
    public function addToDirectoryUri(\\Losc\CucmBundle\Model\Webservice\StructType\XDirectoryUri $item)
    {
        $this->directoryUri[] = $item;
        return $this;
    }
}
