<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Resource_Forecast_Request_CriteriaType StructType
 * Meta information extracted from the WSDL
 * - documentation: Resource Forecast Request Criteria element for Get Resource Forecast Web Service
 * @subpackage Structs
 */
class Resource_Forecast_Request_CriteriaType extends AbstractStructBase
{
    /**
     * The Project_ID
     * Meta information extracted from the WSDL
     * - documentation: Reference ID for the Project
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Project_ID;
    /**
     * Constructor method for Resource_Forecast_Request_CriteriaType
     * @uses Resource_Forecast_Request_CriteriaType::setProject_ID()
     * @param string $project_ID
     */
    public function __construct($project_ID = null)
    {
        $this
            ->setProject_ID($project_ID);
    }
    /**
     * Get Project_ID value
     * @return string|null
     */
    public function getProject_ID()
    {
        return $this->Project_ID;
    }
    /**
     * Set Project_ID value
     * @param string $project_ID
     * @return \StructType\Resource_Forecast_Request_CriteriaType
     */
    public function setProject_ID($project_ID = null)
    {
        // validation for constraint: string
        if (!is_null($project_ID) && !is_string($project_ID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($project_ID, true), gettype($project_ID)), __LINE__);
        }
        $this->Project_ID = $project_ID;
        return $this;
    }
}
