<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ExecuteBizActionResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:ExecuteBizActionResponse
 * @subpackage Structs
 */
class ExecuteBizActionResponse extends ExtensibleDataContract
{
    /**
     * The ResponseData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\SerializedBizActionData
     */
    public $ResponseData;
    /**
     * The ResponseMessage
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\LocalizedText
     */
    public $ResponseMessage;
    /**
     * Constructor method for ExecuteBizActionResponse
     * @uses ExecuteBizActionResponse::setResponseData()
     * @uses ExecuteBizActionResponse::setResponseMessage()
     * @param \patest\StructType\SerializedBizActionData $responseData
     * @param \patest\StructType\LocalizedText $responseMessage
     */
    public function __construct(\patest\StructType\SerializedBizActionData $responseData = null, \patest\StructType\LocalizedText $responseMessage = null)
    {
        $this
            ->setResponseData($responseData)
            ->setResponseMessage($responseMessage);
    }
    /**
     * Get ResponseData 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\SerializedBizActionData|null
     */
    public function getResponseData()
    {
        return isset($this->ResponseData) ? $this->ResponseData : null;
    }
    /**
     * Set ResponseData 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\SerializedBizActionData $responseData
     * @return \patest\StructType\ExecuteBizActionResponse
     */
    public function setResponseData(\patest\StructType\SerializedBizActionData $responseData = null)
    {
        if (is_null($responseData) || (is_array($responseData) && empty($responseData))) {
            unset($this->ResponseData);
        } else {
            $this->ResponseData = $responseData;
        }
        return $this;
    }
    /**
     * Get ResponseMessage 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\LocalizedText|null
     */
    public function getResponseMessage()
    {
        return isset($this->ResponseMessage) ? $this->ResponseMessage : null;
    }
    /**
     * Set ResponseMessage 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\LocalizedText $responseMessage
     * @return \patest\StructType\ExecuteBizActionResponse
     */
    public function setResponseMessage(\patest\StructType\LocalizedText $responseMessage = null)
    {
        if (is_null($responseMessage) || (is_array($responseMessage) && empty($responseMessage))) {
            unset($this->ResponseMessage);
        } else {
            $this->ResponseMessage = $responseMessage;
        }
        return $this;
    }
}
