<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PersonSelection_V2 StructType
 * @subpackage Structs
 */
class PersonSelection_V2 extends PersonSelection
{
    /**
     * The ExcludeInactiveDrivers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var bool
     */
    public $ExcludeInactiveDrivers;
    /**
     * Constructor method for PersonSelection_V2
     * @uses PersonSelection_V2::setExcludeInactiveDrivers()
     * @param bool $excludeInactiveDrivers
     */
    public function __construct($excludeInactiveDrivers = null)
    {
        $this
            ->setExcludeInactiveDrivers($excludeInactiveDrivers);
    }
    /**
     * Get ExcludeInactiveDrivers value
     * @return bool
     */
    public function getExcludeInactiveDrivers()
    {
        return $this->ExcludeInactiveDrivers;
    }
    /**
     * Set ExcludeInactiveDrivers value
     * @param bool $excludeInactiveDrivers
     * @return \StructType\PersonSelection_V2
     */
    public function setExcludeInactiveDrivers($excludeInactiveDrivers = null)
    {
        // validation for constraint: boolean
        if (!is_null($excludeInactiveDrivers) && !is_bool($excludeInactiveDrivers)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($excludeInactiveDrivers, true), gettype($excludeInactiveDrivers)), __LINE__);
        }
        $this->ExcludeInactiveDrivers = $excludeInactiveDrivers;
        return $this;
    }
}
