<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UserSelection StructType
 * @subpackage Structs
 */
class UserSelection extends AbstractStructBase
{
    /**
     * The IncludeInactive
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var bool
     */
    public $IncludeInactive;
    /**
     * The Identifiers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfMyTransicsUser
     */
    public $Identifiers;
    /**
     * Constructor method for UserSelection
     * @uses UserSelection::setIncludeInactive()
     * @uses UserSelection::setIdentifiers()
     * @param bool $includeInactive
     * @param \ArrayType\ArrayOfMyTransicsUser $identifiers
     */
    public function __construct($includeInactive = null, \ArrayType\ArrayOfMyTransicsUser $identifiers = null)
    {
        $this
            ->setIncludeInactive($includeInactive)
            ->setIdentifiers($identifiers);
    }
    /**
     * Get IncludeInactive value
     * @return bool
     */
    public function getIncludeInactive()
    {
        return $this->IncludeInactive;
    }
    /**
     * Set IncludeInactive value
     * @param bool $includeInactive
     * @return \StructType\UserSelection
     */
    public function setIncludeInactive($includeInactive = null)
    {
        // validation for constraint: boolean
        if (!is_null($includeInactive) && !is_bool($includeInactive)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($includeInactive, true), gettype($includeInactive)), __LINE__);
        }
        $this->IncludeInactive = $includeInactive;
        return $this;
    }
    /**
     * Get Identifiers value
     * @return \ArrayType\ArrayOfMyTransicsUser|null
     */
    public function getIdentifiers()
    {
        return $this->Identifiers;
    }
    /**
     * Set Identifiers value
     * @param \ArrayType\ArrayOfMyTransicsUser $identifiers
     * @return \StructType\UserSelection
     */
    public function setIdentifiers(\ArrayType\ArrayOfMyTransicsUser $identifiers = null)
    {
        $this->Identifiers = $identifiers;
        return $this;
    }
}
