<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * Printing.AuxDataItem.TransactionSeatsSummaryByAreas.SummaryItem StructType
 * @subpackage Structs
 */
class Printing_AuxDataItem_TransactionSeatsSummaryByAreas_SummaryItem extends Printing_AuxDataItem_TransactionSeatsSummary_BaseSummaryItem
{
    /**
     * The AreaName
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $AreaName;
    /**
     * Constructor method for
     * Printing.AuxDataItem.TransactionSeatsSummaryByAreas.SummaryItem
     * @uses Printing_AuxDataItem_TransactionSeatsSummaryByAreas_SummaryItem::setAreaName()
     * @param \patest\StructType\GlobalString $areaName
     */
    public function __construct(\patest\StructType\GlobalString $areaName = null)
    {
        $this
            ->setAreaName($areaName);
    }
    /**
     * Get AreaName 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 getAreaName()
    {
        return isset($this->AreaName) ? $this->AreaName : null;
    }
    /**
     * Set AreaName 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 $areaName
     * @return \patest\StructType\Printing_AuxDataItem_TransactionSeatsSummaryByAreas_SummaryItem
     */
    public function setAreaName(\patest\StructType\GlobalString $areaName = null)
    {
        if (is_null($areaName) || (is_array($areaName) && empty($areaName))) {
            unset($this->AreaName);
        } else {
            $this->AreaName = $areaName;
        }
        return $this;
    }
}
