<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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