<?php

/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* PersistentBrowserSessionControl File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace XCloner\Beta\Microsoft\Graph\Model;

if (!defined('ABSPATH') && \PHP_SAPI !== 'cli') {
    die;
}
/**
* PersistentBrowserSessionControl class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class PersistentBrowserSessionControl extends ConditionalAccessSessionControl
{
    /**
     * Gets the mode
     * Possible values are: always, never.
     *
     * @return PersistentBrowserSessionMode|null The mode
     */
    public function getMode()
    {
        if (array_key_exists("mode", $this->_propDict)) {
            if (is_a($this->_propDict["mode"], "XCloner\\Beta\\Microsoft\\Graph\\Model\\PersistentBrowserSessionMode") || is_null($this->_propDict["mode"])) {
                return $this->_propDict["mode"];
            } else {
                $this->_propDict["mode"] = new PersistentBrowserSessionMode($this->_propDict["mode"]);
                return $this->_propDict["mode"];
            }
        }
        return null;
    }
    /**
     * Sets the mode
     * Possible values are: always, never.
     *
     * @param PersistentBrowserSessionMode $val The value to assign to the mode
     *
     * @return PersistentBrowserSessionControl The PersistentBrowserSessionControl
     */
    public function setMode($val)
    {
        $this->_propDict["mode"] = $val;
        return $this;
    }
}
