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

119 lines
3.1 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UserExperienceAnalyticsMetricHistory 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;
/**
* UserExperienceAnalyticsMetricHistory 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 UserExperienceAnalyticsMetricHistory extends Entity
{
/**
* Gets the deviceId
* The user experience analytics device id.
*
* @return string|null The deviceId
*/
public function getDeviceId()
{
if (array_key_exists("deviceId", $this->_propDict)) {
return $this->_propDict["deviceId"];
} else {
return null;
}
}
/**
* Sets the deviceId
* The user experience analytics device id.
*
* @param string $val The deviceId
*
* @return UserExperienceAnalyticsMetricHistory
*/
public function setDeviceId($val)
{
$this->_propDict["deviceId"] = $val;
return $this;
}
/**
* Gets the metricDateTime
* The user experience analytics metric date time.
*
* @return \DateTime|null The metricDateTime
*/
public function getMetricDateTime()
{
if (array_key_exists("metricDateTime", $this->_propDict)) {
if (is_a($this->_propDict["metricDateTime"], "\DateTime") || is_null($this->_propDict["metricDateTime"])) {
return $this->_propDict["metricDateTime"];
} else {
$this->_propDict["metricDateTime"] = new \DateTime($this->_propDict["metricDateTime"]);
return $this->_propDict["metricDateTime"];
}
}
return null;
}
/**
* Sets the metricDateTime
* The user experience analytics metric date time.
*
* @param \DateTime $val The metricDateTime
*
* @return UserExperienceAnalyticsMetricHistory
*/
public function setMetricDateTime($val)
{
$this->_propDict["metricDateTime"] = $val;
return $this;
}
/**
* Gets the metricType
* The user experience analytics metric type.
*
* @return string|null The metricType
*/
public function getMetricType()
{
if (array_key_exists("metricType", $this->_propDict)) {
return $this->_propDict["metricType"];
} else {
return null;
}
}
/**
* Sets the metricType
* The user experience analytics metric type.
*
* @param string $val The metricType
*
* @return UserExperienceAnalyticsMetricHistory
*/
public function setMetricType($val)
{
$this->_propDict["metricType"] = $val;
return $this;
}
}