<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BackOfficeUI.SchoolOrderVisitData StructType
 * @subpackage Structs
 */
class BackOfficeUI_SchoolOrderVisitData extends BizResource_SchoolOrderVisit
{
    /**
     * The GradeId_Name
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $GradeId_Name;
    /**
     * Constructor method for BackOfficeUI.SchoolOrderVisitData
     * @uses BackOfficeUI_SchoolOrderVisitData::setGradeId_Name()
     * @param \patest\StructType\GlobalString $gradeId_Name
     */
    public function __construct(\patest\StructType\GlobalString $gradeId_Name = null)
    {
        $this
            ->setGradeId_Name($gradeId_Name);
    }
    /**
     * Get GradeId_Name value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\StructType\GlobalString|null
     */
    public function getGradeId_Name()
    {
        return isset($this->GradeId_Name) ? $this->GradeId_Name : null;
    }
    /**
     * Set GradeId_Name value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\StructType\GlobalString $gradeId_Name
     * @return \patest\StructType\BackOfficeUI_SchoolOrderVisitData
     */
    public function setGradeId_Name(\patest\StructType\GlobalString $gradeId_Name = null)
    {
        if (is_null($gradeId_Name) || (is_array($gradeId_Name) && empty($gradeId_Name))) {
            unset($this->GradeId_Name);
        } else {
            $this->GradeId_Name = $gradeId_Name;
        }
        return $this;
    }
}
