<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SyncDuplicationInfo StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:SyncDuplicationInfo
 * @subpackage Structs
 */
class SyncDuplicationInfo extends AbstractStructBase
{
    /**
     * The ExternalEntity
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\AnyEntity
     */
    public $ExternalEntity;
    /**
     * The SroDuplicateIds
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfguid
     */
    public $SroDuplicateIds;
    /**
     * The SroDuplications
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfstring
     */
    public $SroDuplications;
    /**
     * Constructor method for SyncDuplicationInfo
     * @uses SyncDuplicationInfo::setExternalEntity()
     * @uses SyncDuplicationInfo::setSroDuplicateIds()
     * @uses SyncDuplicationInfo::setSroDuplications()
     * @param \patest\StructType\AnyEntity $externalEntity
     * @param \patest\ArrayType\ArrayOfguid $sroDuplicateIds
     * @param \patest\ArrayType\ArrayOfstring $sroDuplications
     */
    public function __construct(\patest\StructType\AnyEntity $externalEntity = null, \patest\ArrayType\ArrayOfguid $sroDuplicateIds = null, \patest\ArrayType\ArrayOfstring $sroDuplications = null)
    {
        $this
            ->setExternalEntity($externalEntity)
            ->setSroDuplicateIds($sroDuplicateIds)
            ->setSroDuplications($sroDuplications);
    }
    /**
     * Get ExternalEntity 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\AnyEntity|null
     */
    public function getExternalEntity()
    {
        return isset($this->ExternalEntity) ? $this->ExternalEntity : null;
    }
    /**
     * Set ExternalEntity 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\AnyEntity $externalEntity
     * @return \patest\StructType\SyncDuplicationInfo
     */
    public function setExternalEntity(\patest\StructType\AnyEntity $externalEntity = null)
    {
        if (is_null($externalEntity) || (is_array($externalEntity) && empty($externalEntity))) {
            unset($this->ExternalEntity);
        } else {
            $this->ExternalEntity = $externalEntity;
        }
        return $this;
    }
    /**
     * Get SroDuplicateIds 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\ArrayOfguid|null
     */
    public function getSroDuplicateIds()
    {
        return isset($this->SroDuplicateIds) ? $this->SroDuplicateIds : null;
    }
    /**
     * Set SroDuplicateIds 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\ArrayOfguid $sroDuplicateIds
     * @return \patest\StructType\SyncDuplicationInfo
     */
    public function setSroDuplicateIds(\patest\ArrayType\ArrayOfguid $sroDuplicateIds = null)
    {
        if (is_null($sroDuplicateIds) || (is_array($sroDuplicateIds) && empty($sroDuplicateIds))) {
            unset($this->SroDuplicateIds);
        } else {
            $this->SroDuplicateIds = $sroDuplicateIds;
        }
        return $this;
    }
    /**
     * Get SroDuplications 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\ArrayOfstring|null
     */
    public function getSroDuplications()
    {
        return isset($this->SroDuplications) ? $this->SroDuplications : null;
    }
    /**
     * Set SroDuplications 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\ArrayOfstring $sroDuplications
     * @return \patest\StructType\SyncDuplicationInfo
     */
    public function setSroDuplications(\patest\ArrayType\ArrayOfstring $sroDuplications = null)
    {
        if (is_null($sroDuplications) || (is_array($sroDuplications) && empty($sroDuplications))) {
            unset($this->SroDuplications);
        } else {
            $this->SroDuplications = $sroDuplications;
        }
        return $this;
    }
}
