<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removeUserRoles StructType
 * @subpackage Structs
 */
class RemoveUserRoles extends XCommonMembersExtension
{
    /**
     * The userRole
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XUserGroupRoles[]
     */
    public $userRole;
    /**
     * Constructor method for removeUserRoles
     * @uses RemoveUserRoles::setUserRole()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XUserGroupRoles[] $userRole
     */
    public function __construct(array $userRole = array())
    {
        $this
            ->setUserRole($userRole);
    }
    /**
     * Get userRole value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XUserGroupRoles[]|null
     */
    public function getUserRole()
    {
        return $this->userRole;
    }
    /**
     * Set userRole value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XUserGroupRoles[] $userRole
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveUserRoles
     */
    public function setUserRole(array $userRole = array())
    {
        $this->userRole = $userRole;
        return $this;
    }
    /**
     * Add item to userRole value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XUserGroupRoles $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveUserRoles
     */
    public function addToUserRole(\\Losc\CucmBundle\Model\Webservice\StructType\XUserGroupRoles $item)
    {
        $this->userRole[] = $item;
        return $this;
    }
}
