<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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