<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for addParameters StructType
 * @subpackage Structs
 */
class AddParameters extends XCommonMembersExtension
{
    /**
     * The parameter
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter[]
     */
    public $parameter;
    /**
     * Constructor method for addParameters
     * @uses AddParameters::setParameter()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter[] $parameter
     */
    public function __construct(array $parameter = array())
    {
        $this
            ->setParameter($parameter);
    }
    /**
     * Get parameter value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter[]
     */
    public function getParameter()
    {
        return $this->parameter;
    }
    /**
     * Set parameter value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter[] $parameter
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddParameters
     */
    public function setParameter(array $parameter = array())
    {
        $this->parameter = $parameter;
        return $this;
    }
    /**
     * Add item to parameter value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddParameters
     */
    public function addToParameter(\\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter $item)
    {
        $this->parameter[] = $item;
        return $this;
    }
}
