<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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