1
0
Fork 0
m365-php/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/GovernancePolicy.php

89 lines
2.9 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* GovernancePolicy 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 Beta\Microsoft\Graph\Model;
/**
* GovernancePolicy 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 GovernancePolicy extends Entity
{
/**
* Gets the decisionMakerCriteria
*
* @return GovernanceCriteria|null The decisionMakerCriteria
*/
public function getDecisionMakerCriteria()
{
if (array_key_exists("decisionMakerCriteria", $this->_propDict)) {
if (is_a($this->_propDict["decisionMakerCriteria"], "\Beta\Microsoft\Graph\Model\GovernanceCriteria") || is_null($this->_propDict["decisionMakerCriteria"])) {
return $this->_propDict["decisionMakerCriteria"];
} else {
$this->_propDict["decisionMakerCriteria"] = new GovernanceCriteria($this->_propDict["decisionMakerCriteria"]);
return $this->_propDict["decisionMakerCriteria"];
}
}
return null;
}
/**
* Sets the decisionMakerCriteria
*
* @param GovernanceCriteria $val The value to assign to the decisionMakerCriteria
*
* @return GovernancePolicy The GovernancePolicy
*/
public function setDecisionMakerCriteria($val)
{
$this->_propDict["decisionMakerCriteria"] = $val;
return $this;
}
/**
* Gets the notificationPolicy
*
* @return GovernanceNotificationPolicy|null The notificationPolicy
*/
public function getNotificationPolicy()
{
if (array_key_exists("notificationPolicy", $this->_propDict)) {
if (is_a($this->_propDict["notificationPolicy"], "\Beta\Microsoft\Graph\Model\GovernanceNotificationPolicy") || is_null($this->_propDict["notificationPolicy"])) {
return $this->_propDict["notificationPolicy"];
} else {
$this->_propDict["notificationPolicy"] = new GovernanceNotificationPolicy($this->_propDict["notificationPolicy"]);
return $this->_propDict["notificationPolicy"];
}
}
return null;
}
/**
* Sets the notificationPolicy
*
* @param GovernanceNotificationPolicy $val The value to assign to the notificationPolicy
*
* @return GovernancePolicy The GovernancePolicy
*/
public function setNotificationPolicy($val)
{
$this->_propDict["notificationPolicy"] = $val;
return $this;
}
}