<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CreateSimulationDataResponse StructType
 * @subpackage Structs
 */
class CreateSimulationDataResponse extends AbstractStructBase
{
    /**
     * The CreateSimulationDataResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var SimulationDataMT
     */
    public $CreateSimulationDataResult;
    /**
     * Constructor method for CreateSimulationDataResponse
     * @uses CreateSimulationDataResponse::setCreateSimulationDataResult()
     * @param SimulationDataMT $createSimulationDataResult
     */
    public function __construct(SimulationDataMT $createSimulationDataResult = null)
    {
        $this
            ->setCreateSimulationDataResult($createSimulationDataResult);
    }
    /**
     * Get CreateSimulationDataResult 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 SimulationDataMT|null
     */
    public function getCreateSimulationDataResult()
    {
        return isset($this->CreateSimulationDataResult) ? $this->CreateSimulationDataResult : null;
    }
    /**
     * Set CreateSimulationDataResult 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 SimulationDataMT $createSimulationDataResult
     * @return CreateSimulationDataResponse
     */
    public function setCreateSimulationDataResult(SimulationDataMT $createSimulationDataResult = null)
    {
        if (is_null($createSimulationDataResult) || (is_array($createSimulationDataResult) && empty($createSimulationDataResult))) {
            unset($this->CreateSimulationDataResult);
        } else {
            $this->CreateSimulationDataResult = $createSimulationDataResult;
        }
        return $this;
    }
}
