<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for speeddials StructType
 * @subpackage Structs
 */
class Speeddials extends AbstractStructBase
{
    /**
     * The speeddial
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XSpeeddial[]
     */
    public $speeddial;
    /**
     * Constructor method for speeddials
     * @uses Speeddials::setSpeeddial()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSpeeddial[] $speeddial
     */
    public function __construct(array $speeddial = array())
    {
        $this
            ->setSpeeddial($speeddial);
    }
    /**
     * Get speeddial value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XSpeeddial[]|null
     */
    public function getSpeeddial()
    {
        return $this->speeddial;
    }
    /**
     * Set speeddial value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSpeeddial[] $speeddial
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Speeddials
     */
    public function setSpeeddial(array $speeddial = array())
    {
        $this->speeddial = $speeddial;
        return $this;
    }
    /**
     * Add item to speeddial value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSpeeddial $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Speeddials
     */
    public function addToSpeeddial(\\Losc\CucmBundle\Model\Webservice\StructType\XSpeeddial $item)
    {
        $this->speeddial[] = $item;
        return $this;
    }
}
