<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ResolveClientNameBySalutationFormatResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:ResolveClientNameBySalutationFormatResponse
 * @subpackage Structs
 */
class ResolveClientNameBySalutationFormatResponse extends AbstractStructBase
{
    /**
     * The FormatedNamesByClientId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidstring
     */
    public $FormatedNamesByClientId;
    /**
     * Constructor method for ResolveClientNameBySalutationFormatResponse
     * @uses ResolveClientNameBySalutationFormatResponse::setFormatedNamesByClientId()
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidstring $formatedNamesByClientId
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfguidstring $formatedNamesByClientId = null)
    {
        $this
            ->setFormatedNamesByClientId($formatedNamesByClientId);
    }
    /**
     * Get FormatedNamesByClientId 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\ArrayType\ArrayOfKeyValueOfguidstring|null
     */
    public function getFormatedNamesByClientId()
    {
        return isset($this->FormatedNamesByClientId) ? $this->FormatedNamesByClientId : null;
    }
    /**
     * Set FormatedNamesByClientId 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\ArrayType\ArrayOfKeyValueOfguidstring $formatedNamesByClientId
     * @return \patest\StructType\ResolveClientNameBySalutationFormatResponse
     */
    public function setFormatedNamesByClientId(\patest\ArrayType\ArrayOfKeyValueOfguidstring $formatedNamesByClientId = null)
    {
        if (is_null($formatedNamesByClientId) || (is_array($formatedNamesByClientId) && empty($formatedNamesByClientId))) {
            unset($this->FormatedNamesByClientId);
        } else {
            $this->FormatedNamesByClientId = $formatedNamesByClientId;
        }
        return $this;
    }
}
