<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Crm.MergeClients.Request StructType
 * @subpackage Structs
 */
class BizAction_Crm_MergeClients_Request extends AnyEntity
{
    /**
     * The Client1Data
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Crm_ClientSummaryData
     */
    public $Client1Data;
    /**
     * The Client2Data
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Crm_ClientSummaryData
     */
    public $Client2Data;
    /**
     * Constructor method for BizAction.Crm.MergeClients.Request
     * @uses BizAction_Crm_MergeClients_Request::setClient1Data()
     * @uses BizAction_Crm_MergeClients_Request::setClient2Data()
     * @param \patest\StructType\Crm_ClientSummaryData $client1Data
     * @param \patest\StructType\Crm_ClientSummaryData $client2Data
     */
    public function __construct(\patest\StructType\Crm_ClientSummaryData $client1Data = null, \patest\StructType\Crm_ClientSummaryData $client2Data = null)
    {
        $this
            ->setClient1Data($client1Data)
            ->setClient2Data($client2Data);
    }
    /**
     * Get Client1Data 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\Crm_ClientSummaryData|null
     */
    public function getClient1Data()
    {
        return isset($this->Client1Data) ? $this->Client1Data : null;
    }
    /**
     * Set Client1Data 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\Crm_ClientSummaryData $client1Data
     * @return \patest\StructType\BizAction_Crm_MergeClients_Request
     */
    public function setClient1Data(\patest\StructType\Crm_ClientSummaryData $client1Data = null)
    {
        if (is_null($client1Data) || (is_array($client1Data) && empty($client1Data))) {
            unset($this->Client1Data);
        } else {
            $this->Client1Data = $client1Data;
        }
        return $this;
    }
    /**
     * Get Client2Data 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\Crm_ClientSummaryData|null
     */
    public function getClient2Data()
    {
        return isset($this->Client2Data) ? $this->Client2Data : null;
    }
    /**
     * Set Client2Data 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\Crm_ClientSummaryData $client2Data
     * @return \patest\StructType\BizAction_Crm_MergeClients_Request
     */
    public function setClient2Data(\patest\StructType\Crm_ClientSummaryData $client2Data = null)
    {
        if (is_null($client2Data) || (is_array($client2Data) && empty($client2Data))) {
            unset($this->Client2Data);
        } else {
            $this->Client2Data = $client2Data;
        }
        return $this;
    }
}
