<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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