119 lines
3.0 KiB
PHP
119 lines
3.0 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* AccessReviewReviewer 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;
|
|
|
|
/**
|
|
* AccessReviewReviewer 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 AccessReviewReviewer extends Entity
|
|
{
|
|
/**
|
|
* Gets the createdDateTime
|
|
* The date when the reviewer was added for the access review.
|
|
*
|
|
* @return \DateTime|null The createdDateTime
|
|
*/
|
|
public function getCreatedDateTime()
|
|
{
|
|
if (array_key_exists("createdDateTime", $this->_propDict)) {
|
|
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
|
|
return $this->_propDict["createdDateTime"];
|
|
} else {
|
|
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
|
|
return $this->_propDict["createdDateTime"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the createdDateTime
|
|
* The date when the reviewer was added for the access review.
|
|
*
|
|
* @param \DateTime $val The createdDateTime
|
|
*
|
|
* @return AccessReviewReviewer
|
|
*/
|
|
public function setCreatedDateTime($val)
|
|
{
|
|
$this->_propDict["createdDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the displayName
|
|
* Name of reviewer.
|
|
*
|
|
* @return string|null The displayName
|
|
*/
|
|
public function getDisplayName()
|
|
{
|
|
if (array_key_exists("displayName", $this->_propDict)) {
|
|
return $this->_propDict["displayName"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the displayName
|
|
* Name of reviewer.
|
|
*
|
|
* @param string $val The displayName
|
|
*
|
|
* @return AccessReviewReviewer
|
|
*/
|
|
public function setDisplayName($val)
|
|
{
|
|
$this->_propDict["displayName"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the userPrincipalName
|
|
* User principal name of the user.
|
|
*
|
|
* @return string|null The userPrincipalName
|
|
*/
|
|
public function getUserPrincipalName()
|
|
{
|
|
if (array_key_exists("userPrincipalName", $this->_propDict)) {
|
|
return $this->_propDict["userPrincipalName"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the userPrincipalName
|
|
* User principal name of the user.
|
|
*
|
|
* @param string $val The userPrincipalName
|
|
*
|
|
* @return AccessReviewReviewer
|
|
*/
|
|
public function setUserPrincipalName($val)
|
|
{
|
|
$this->_propDict["userPrincipalName"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
}
|