<?php

namespace CfcalSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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