<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for endUsers StructType
 * Meta information extracted from the WSDL
 * - documentation: Applicable for Cisco Unity Voice Mail 4.x or later, Cisco Unity Connection and Cisco Web Dialer
 * @subpackage Structs
 */
class EndUsers extends XCommonMembersExtension
{
    /**
     * The selectedEndUser
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\SelectedEndUser[]
     */
    public $selectedEndUser;
    /**
     * Constructor method for endUsers
     * @uses EndUsers::setSelectedEndUser()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\SelectedEndUser[] $selectedEndUser
     */
    public function __construct(array $selectedEndUser = array())
    {
        $this
            ->setSelectedEndUser($selectedEndUser);
    }
    /**
     * Get selectedEndUser value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\SelectedEndUser[]|null
     */
    public function getSelectedEndUser()
    {
        return $this->selectedEndUser;
    }
    /**
     * Set selectedEndUser value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\SelectedEndUser[] $selectedEndUser
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\EndUsers
     */
    public function setSelectedEndUser(array $selectedEndUser = array())
    {
        $this->selectedEndUser = $selectedEndUser;
        return $this;
    }
    /**
     * Add item to selectedEndUser value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\SelectedEndUser $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\EndUsers
     */
    public function addToSelectedEndUser(\\Losc\CucmBundle\Model\Webservice\StructType\SelectedEndUser $item)
    {
        $this->selectedEndUser[] = $item;
        return $this;
    }
}
