<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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