<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for softKeys StructType
 * Meta information extracted from the WSDL
 * - documentation: List of mandatory keys for each callstate :: On Hook - NewCall Connected - End Call On Hold - Resume Off Hook - End Call Connected Transfer - Transfer Digits After First - Backward Connected Conference - Conference Ring Out - End
 * Call Off Hook With Feature - End Call
 * @subpackage Structs
 */
class SoftKeys extends AbstractStructBase
{
    /**
     * The softKey
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XSoftKeyMember[]
     */
    public $softKey;
    /**
     * Constructor method for softKeys
     * @uses SoftKeys::setSoftKey()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSoftKeyMember[] $softKey
     */
    public function __construct(array $softKey = array())
    {
        $this
            ->setSoftKey($softKey);
    }
    /**
     * Get softKey value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XSoftKeyMember[]|null
     */
    public function getSoftKey()
    {
        return $this->softKey;
    }
    /**
     * Set softKey value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSoftKeyMember[] $softKey
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\SoftKeys
     */
    public function setSoftKey(array $softKey = array())
    {
        $this->softKey = $softKey;
        return $this;
    }
    /**
     * Add item to softKey value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XSoftKeyMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\SoftKeys
     */
    public function addToSoftKey(\\Losc\CucmBundle\Model\Webservice\StructType\XSoftKeyMember $item)
    {
        $this->softKey[] = $item;
        return $this;
    }
}
