<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GiftVoucher.CardLoadingForSearch StructType
 * @subpackage Structs
 */
class GiftVoucher_CardLoadingForSearch extends GiftVoucher_CardLoading
{
    /**
     * The ProgramName
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $ProgramName;
    /**
     * The TypeName
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $TypeName;
    /**
     * Constructor method for GiftVoucher.CardLoadingForSearch
     * @uses GiftVoucher_CardLoadingForSearch::setProgramName()
     * @uses GiftVoucher_CardLoadingForSearch::setTypeName()
     * @param \patest\StructType\GlobalString $programName
     * @param \patest\StructType\GlobalString $typeName
     */
    public function __construct(\patest\StructType\GlobalString $programName = null, \patest\StructType\GlobalString $typeName = null)
    {
        $this
            ->setProgramName($programName)
            ->setTypeName($typeName);
    }
    /**
     * Get ProgramName 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 getProgramName()
    {
        return isset($this->ProgramName) ? $this->ProgramName : null;
    }
    /**
     * Set ProgramName 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 $programName
     * @return \patest\StructType\GiftVoucher_CardLoadingForSearch
     */
    public function setProgramName(\patest\StructType\GlobalString $programName = null)
    {
        if (is_null($programName) || (is_array($programName) && empty($programName))) {
            unset($this->ProgramName);
        } else {
            $this->ProgramName = $programName;
        }
        return $this;
    }
    /**
     * Get TypeName 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 getTypeName()
    {
        return isset($this->TypeName) ? $this->TypeName : null;
    }
    /**
     * Set TypeName 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 $typeName
     * @return \patest\StructType\GiftVoucher_CardLoadingForSearch
     */
    public function setTypeName(\patest\StructType\GlobalString $typeName = null)
    {
        if (is_null($typeName) || (is_array($typeName) && empty($typeName))) {
            unset($this->TypeName);
        } else {
            $this->TypeName = $typeName;
        }
        return $this;
    }
}
