<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for DispatcherUserSelection StructType
 * @subpackage Structs
 */
class DispatcherUserSelection extends AbstractStructBase
{
    /**
     * The ExcludeInactiveDispatchers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var bool
     */
    public $ExcludeInactiveDispatchers;
    /**
     * The UserIdentifiers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfIdentifierUser
     */
    public $UserIdentifiers;
    /**
     * Constructor method for DispatcherUserSelection
     * @uses DispatcherUserSelection::setExcludeInactiveDispatchers()
     * @uses DispatcherUserSelection::setUserIdentifiers()
     * @param bool $excludeInactiveDispatchers
     * @param \ArrayType\ArrayOfIdentifierUser $userIdentifiers
     */
    public function __construct($excludeInactiveDispatchers = null, \ArrayType\ArrayOfIdentifierUser $userIdentifiers = null)
    {
        $this
            ->setExcludeInactiveDispatchers($excludeInactiveDispatchers)
            ->setUserIdentifiers($userIdentifiers);
    }
    /**
     * Get ExcludeInactiveDispatchers value
     * @return bool
     */
    public function getExcludeInactiveDispatchers()
    {
        return $this->ExcludeInactiveDispatchers;
    }
    /**
     * Set ExcludeInactiveDispatchers value
     * @param bool $excludeInactiveDispatchers
     * @return \StructType\DispatcherUserSelection
     */
    public function setExcludeInactiveDispatchers($excludeInactiveDispatchers = null)
    {
        // validation for constraint: boolean
        if (!is_null($excludeInactiveDispatchers) && !is_bool($excludeInactiveDispatchers)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($excludeInactiveDispatchers, true), gettype($excludeInactiveDispatchers)), __LINE__);
        }
        $this->ExcludeInactiveDispatchers = $excludeInactiveDispatchers;
        return $this;
    }
    /**
     * Get UserIdentifiers value
     * @return \ArrayType\ArrayOfIdentifierUser|null
     */
    public function getUserIdentifiers()
    {
        return $this->UserIdentifiers;
    }
    /**
     * Set UserIdentifiers value
     * @param \ArrayType\ArrayOfIdentifierUser $userIdentifiers
     * @return \StructType\DispatcherUserSelection
     */
    public function setUserIdentifiers(\ArrayType\ArrayOfIdentifierUser $userIdentifiers = null)
    {
        $this->UserIdentifiers = $userIdentifiers;
        return $this;
    }
}
