<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for appUsers 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 AppUsers extends XCommonMembersExtension
{
    /**
     * The selectedAppUser
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser[]
     */
    public $selectedAppUser;
    /**
     * Constructor method for appUsers
     * @uses AppUsers::setSelectedAppUser()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser[] $selectedAppUser
     */
    public function __construct(array $selectedAppUser = array())
    {
        $this
            ->setSelectedAppUser($selectedAppUser);
    }
    /**
     * Get selectedAppUser value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser[]|null
     */
    public function getSelectedAppUser()
    {
        return $this->selectedAppUser;
    }
    /**
     * Set selectedAppUser value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser[] $selectedAppUser
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AppUsers
     */
    public function setSelectedAppUser(array $selectedAppUser = array())
    {
        $this->selectedAppUser = $selectedAppUser;
        return $this;
    }
    /**
     * Add item to selectedAppUser value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AppUsers
     */
    public function addToSelectedAppUser(\\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser $item)
    {
        $this->selectedAppUser[] = $item;
        return $this;
    }
}
