<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for parameters StructType
 * @subpackage Structs
 */
class Parameters extends XCommonMembersExtension
{
    /**
     * The parameter
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter[]
     */
    public $parameter;
    /**
     * Constructor method for parameters
     * @uses Parameters::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[]|null
     */
    public function getParameter()
    {
        return $this->parameter;
    }
    /**
     * Set parameter value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter[] $parameter
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Parameters
     */
    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\Parameters
     */
    public function addToParameter(\\Losc\CucmBundle\Model\Webservice\StructType\XIpPhoneServicesParameter $item)
    {
        $this->parameter[] = $item;
        return $this;
    }
}
