<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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