<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for EcoMonitorReportSelection StructType
 * @subpackage Structs
 */
class EcoMonitorReportSelection extends AbstractStructBase
{
    /**
     * The IncludeRecordsWithoutDriver
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $IncludeRecordsWithoutDriver;
    /**
     * The Drivers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfIdentifier
     */
    public $Drivers;
    /**
     * The DateTimeRangeSelection
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\DateTimeRangeSelection
     */
    public $DateTimeRangeSelection;
    /**
     * Constructor method for EcoMonitorReportSelection
     * @uses EcoMonitorReportSelection::setIncludeRecordsWithoutDriver()
     * @uses EcoMonitorReportSelection::setDrivers()
     * @uses EcoMonitorReportSelection::setDateTimeRangeSelection()
     * @param bool $includeRecordsWithoutDriver
     * @param \ArrayType\ArrayOfIdentifier $drivers
     * @param \StructType\DateTimeRangeSelection $dateTimeRangeSelection
     */
    public function __construct($includeRecordsWithoutDriver = null, \ArrayType\ArrayOfIdentifier $drivers = null, \StructType\DateTimeRangeSelection $dateTimeRangeSelection = null)
    {
        $this
            ->setIncludeRecordsWithoutDriver($includeRecordsWithoutDriver)
            ->setDrivers($drivers)
            ->setDateTimeRangeSelection($dateTimeRangeSelection);
    }
    /**
     * Get IncludeRecordsWithoutDriver value
     * @return bool
     */
    public function getIncludeRecordsWithoutDriver()
    {
        return $this->IncludeRecordsWithoutDriver;
    }
    /**
     * Set IncludeRecordsWithoutDriver value
     * @param bool $includeRecordsWithoutDriver
     * @return \StructType\EcoMonitorReportSelection
     */
    public function setIncludeRecordsWithoutDriver($includeRecordsWithoutDriver = null)
    {
        // validation for constraint: boolean
        if (!is_null($includeRecordsWithoutDriver) && !is_bool($includeRecordsWithoutDriver)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($includeRecordsWithoutDriver, true), gettype($includeRecordsWithoutDriver)), __LINE__);
        }
        $this->IncludeRecordsWithoutDriver = $includeRecordsWithoutDriver;
        return $this;
    }
    /**
     * Get Drivers value
     * @return \ArrayType\ArrayOfIdentifier|null
     */
    public function getDrivers()
    {
        return $this->Drivers;
    }
    /**
     * Set Drivers value
     * @param \ArrayType\ArrayOfIdentifier $drivers
     * @return \StructType\EcoMonitorReportSelection
     */
    public function setDrivers(\ArrayType\ArrayOfIdentifier $drivers = null)
    {
        $this->Drivers = $drivers;
        return $this;
    }
    /**
     * Get DateTimeRangeSelection value
     * @return \StructType\DateTimeRangeSelection|null
     */
    public function getDateTimeRangeSelection()
    {
        return $this->DateTimeRangeSelection;
    }
    /**
     * Set DateTimeRangeSelection value
     * @param \StructType\DateTimeRangeSelection $dateTimeRangeSelection
     * @return \StructType\EcoMonitorReportSelection
     */
    public function setDateTimeRangeSelection(\StructType\DateTimeRangeSelection $dateTimeRangeSelection = null)
    {
        $this->DateTimeRangeSelection = $dateTimeRangeSelection;
        return $this;
    }
}
