<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.AuxDataItem.ClientFormattedNames StructType
 * @subpackage Structs
 */
class Printing_AuxDataItem_ClientFormattedNames extends Printing_AuxiliaryDataItem_Base
{
    /**
     * The Names
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfPrinting_AuxDataItem_ClientFormattedName
     */
    public $Names;
    /**
     * Constructor method for Printing.AuxDataItem.ClientFormattedNames
     * @uses Printing_AuxDataItem_ClientFormattedNames::setNames()
     * @param \patest\StructType\RecordSetOfPrinting_AuxDataItem_ClientFormattedName $names
     */
    public function __construct(\patest\StructType\RecordSetOfPrinting_AuxDataItem_ClientFormattedName $names = null)
    {
        $this
            ->setNames($names);
    }
    /**
     * Get Names 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\RecordSetOfPrinting_AuxDataItem_ClientFormattedName|null
     */
    public function getNames()
    {
        return isset($this->Names) ? $this->Names : null;
    }
    /**
     * Set Names 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\RecordSetOfPrinting_AuxDataItem_ClientFormattedName $names
     * @return \patest\StructType\Printing_AuxDataItem_ClientFormattedNames
     */
    public function setNames(\patest\StructType\RecordSetOfPrinting_AuxDataItem_ClientFormattedName $names = null)
    {
        if (is_null($names) || (is_array($names) && empty($names))) {
            unset($this->Names);
        } else {
            $this->Names = $names;
        }
        return $this;
    }
}
