<?php

namespace CfcalSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for InformationsConnexionEspaceSecurise Entity
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:InformationsConnexionEspaceSecurise
 * @subpackage Structs
 */
class InformationsConnexionEspaceSecurise extends InformationsConnexion
{
    /**
     * The MotDePasseEspaceSecurise
     * Meta information extracted from the WSDL
     * - nillable: true
     * @var string
     */
    public $MotDePasseEspaceSecurise;
    /**
     * Constructor method for InformationsConnexionEspaceSecurise
     * @uses InformationsConnexionEspaceSecurise::setMotDePasseEspaceSecurise()
     * @param string $motDePasseEspaceSecurise
     */
    public function __construct($motDePasseEspaceSecurise = null)
    {
        $this
            ->setMotDePasseEspaceSecurise($motDePasseEspaceSecurise);
    }
    /**
     * Get MotDePasseEspaceSecurise value
     * @return string|null
     */
    public function getMotDePasseEspaceSecurise()
    {
        return $this->MotDePasseEspaceSecurise;
    }
    /**
     * Set MotDePasseEspaceSecurise value
     * @param string $motDePasseEspaceSecurise
     * @return \CfcalSDK\Entity\InformationsConnexionEspaceSecurise
     */
    public function setMotDePasseEspaceSecurise($motDePasseEspaceSecurise = null)
    {
        // validation for constraint: string
        if (!is_null($motDePasseEspaceSecurise) && !is_string($motDePasseEspaceSecurise)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($motDePasseEspaceSecurise, true), gettype($motDePasseEspaceSecurise)), __LINE__);
        }
        $this->MotDePasseEspaceSecurise = $motDePasseEspaceSecurise;
        return $this;
    }
}
