<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* FileSystemInfo 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 Microsoft\Graph\Model;
/**
* FileSystemInfo 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 FileSystemInfo extends Entity
{
/**
* Gets the createdDateTime
* The UTC date and time the file was created on a client.
*
* @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 UTC date and time the file was created on a client.
*
* @param \DateTime $val The value to assign to the createdDateTime
*
* @return FileSystemInfo The FileSystemInfo
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the lastAccessedDateTime
* The UTC date and time the file was last accessed. Available for the recent file list only.
*
* @return \DateTime|null The lastAccessedDateTime
*/
public function getLastAccessedDateTime()
{
if (array_key_exists("lastAccessedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastAccessedDateTime"], "\DateTime") || is_null($this->_propDict["lastAccessedDateTime"])) {
return $this->_propDict["lastAccessedDateTime"];
} else {
$this->_propDict["lastAccessedDateTime"] = new \DateTime($this->_propDict["lastAccessedDateTime"]);
return $this->_propDict["lastAccessedDateTime"];
}
}
return null;
}
/**
* Sets the lastAccessedDateTime
* The UTC date and time the file was last accessed. Available for the recent file list only.
*
* @param \DateTime $val The value to assign to the lastAccessedDateTime
*
* @return FileSystemInfo The FileSystemInfo
*/
public function setLastAccessedDateTime($val)
{
$this->_propDict["lastAccessedDateTime"] = $val;
return $this;
}
/**
* Gets the lastModifiedDateTime
* The UTC date and time the file was last modified on a client.
*
* @return \DateTime|null The lastModifiedDateTime
*/
public function getLastModifiedDateTime()
{
if (array_key_exists("lastModifiedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) {
return $this->_propDict["lastModifiedDateTime"];
} else {
$this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]);
return $this->_propDict["lastModifiedDateTime"];
}
}
return null;
}
/**
* Sets the lastModifiedDateTime
* The UTC date and time the file was last modified on a client.
*
* @param \DateTime $val The value to assign to the lastModifiedDateTime
*
* @return FileSystemInfo The FileSystemInfo
*/
public function setLastModifiedDateTime($val)
{
$this->_propDict["lastModifiedDateTime"] = $val;
return $this;
}
}
|