<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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