<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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