<?php

namespace CfcalSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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