-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathItemActivity.php
58 lines (56 loc) · 1.28 KB
/
ItemActivity.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Modified: 2020-05-26T22:10:14+00:00
*/
namespace Office365\OneDrive;
use Office365\Directory\Identities\IdentitySet;
use Office365\Entity;
use Office365\Runtime\ResourcePath;
class ItemActivity extends Entity
{
/**
* @return IdentitySet
*/
public function getActor()
{
if (!$this->isPropertyAvailable("Actor")) {
return null;
}
return $this->getProperty("Actor");
}
/**
* @var IdentitySet
*/
public function setActor($value)
{
$this->setProperty("Actor", $value, true);
}
/**
* @return DriveItem
*/
public function getDriveItem()
{
if (!$this->isPropertyAvailable("DriveItem")) {
$this->setProperty("DriveItem", new DriveItem($this->getContext(),
new ResourcePath("DriveItem", $this->getResourcePath())));
}
return $this->getProperty("DriveItem");
}
/**
* @return AccessAction
*/
public function getAccess()
{
if (!$this->isPropertyAvailable("Access")) {
return null;
}
return $this->getProperty("Access");
}
/**
* @var AccessAction
*/
public function setAccess($value)
{
$this->setProperty("Access", $value, true);
}
}