<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for addAppUsers StructType
 * @subpackage Structs
 */
class AddAppUsers extends XCommonMembersExtension
{
    /**
     * The selectedAppUser
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser[]
     */
    public $selectedAppUser;
    /**
     * Constructor method for addAppUsers
     * @uses AddAppUsers::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[]
     */
    public function getSelectedAppUser()
    {
        return $this->selectedAppUser;
    }
    /**
     * Set selectedAppUser value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser[] $selectedAppUser
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddAppUsers
     */
    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\AddAppUsers
     */
    public function addToSelectedAppUser(\\Losc\CucmBundle\Model\Webservice\StructType\SelectedAppUser $item)
    {
        $this->selectedAppUser[] = $item;
        return $this;
    }
}
