<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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