<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Project_Task_Request_CriteriaType StructType
 * Meta information extracted from the WSDL
 * - documentation: Request Criteria for Get Project Tasks
 * @subpackage Structs
 */
class Project_Task_Request_CriteriaType extends AbstractStructBase
{
    /**
     * The Project_Task_Name
     * Meta information extracted from the WSDL
     * - documentation: Project Task Name
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Project_Task_Name;
    /**
     * Constructor method for Project_Task_Request_CriteriaType
     * @uses Project_Task_Request_CriteriaType::setProject_Task_Name()
     * @param string $project_Task_Name
     */
    public function __construct($project_Task_Name = null)
    {
        $this
            ->setProject_Task_Name($project_Task_Name);
    }
    /**
     * Get Project_Task_Name value
     * @return string|null
     */
    public function getProject_Task_Name()
    {
        return $this->Project_Task_Name;
    }
    /**
     * Set Project_Task_Name value
     * @param string $project_Task_Name
     * @return \StructType\Project_Task_Request_CriteriaType
     */
    public function setProject_Task_Name($project_Task_Name = null)
    {
        // validation for constraint: string
        if (!is_null($project_Task_Name) && !is_string($project_Task_Name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($project_Task_Name, true), gettype($project_Task_Name)), __LINE__);
        }
        $this->Project_Task_Name = $project_Task_Name;
        return $this;
    }
}
