<?php

/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* EdgeSearchEngine 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\Microsoft\Graph\Model;

if (!defined('ABSPATH') && \PHP_SAPI !== 'cli') {
    die;
}
/**
* EdgeSearchEngine 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 EdgeSearchEngine extends EdgeSearchEngineBase
{
    /**
     * Set the @odata.type since this type is immediately descended from an abstract
     * type that is referenced as the type in an entity.
     * @param array $propDict The property dictionary
     */
    public function __construct($propDict = array())
    {
        parent::__construct($propDict);
        $this->setODataType("#microsoft.graph.edgeSearchEngine");
    }
    /**
     * Gets the edgeSearchEngineType
     * Allows IT admins to set a predefined default search engine for MDM-Controlled devices. Possible values are: default, bing.
     *
     * @return EdgeSearchEngineType|null The edgeSearchEngineType
     */
    public function getEdgeSearchEngineType()
    {
        if (array_key_exists("edgeSearchEngineType", $this->_propDict)) {
            if (is_a($this->_propDict["edgeSearchEngineType"], "XCloner\\Microsoft\\Graph\\Model\\EdgeSearchEngineType") || is_null($this->_propDict["edgeSearchEngineType"])) {
                return $this->_propDict["edgeSearchEngineType"];
            } else {
                $this->_propDict["edgeSearchEngineType"] = new EdgeSearchEngineType($this->_propDict["edgeSearchEngineType"]);
                return $this->_propDict["edgeSearchEngineType"];
            }
        }
        return null;
    }
    /**
     * Sets the edgeSearchEngineType
     * Allows IT admins to set a predefined default search engine for MDM-Controlled devices. Possible values are: default, bing.
     *
     * @param EdgeSearchEngineType $val The value to assign to the edgeSearchEngineType
     *
     * @return EdgeSearchEngine The EdgeSearchEngine
     */
    public function setEdgeSearchEngineType($val)
    {
        $this->_propDict["edgeSearchEngineType"] = $val;
        return $this;
    }
}
