<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for servers StructType
 * @subpackage Structs
 */
class Servers extends AbstractStructBase
{
    /**
     * The server
     * Meta information extracted from the WSDL
     * - maxOccurs: 3
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\Server[]
     */
    public $server;
    /**
     * Constructor method for servers
     * @uses Servers::setServer()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\Server[] $server
     */
    public function __construct(array $server = array())
    {
        $this
            ->setServer($server);
    }
    /**
     * Get server value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Server[]|null
     */
    public function getServer()
    {
        return $this->server;
    }
    /**
     * Set server value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\Server[] $server
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Servers
     */
    public function setServer(array $server = array())
    {
        $this->server = $server;
        return $this;
    }
    /**
     * Add item to server value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\Server $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Servers
     */
    public function addToServer(\\Losc\CucmBundle\Model\Webservice\StructType\Server $item)
    {
        $this->server[] = $item;
        return $this;
    }
}
