-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathBaseEntityCollection.php
45 lines (37 loc) · 1.04 KB
/
BaseEntityCollection.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
<?php
namespace Office365\SharePoint;
use Office365\Runtime\ClientObject;
use Office365\Runtime\ClientObjectCollection;
use Office365\Runtime\ClientRuntimeContext;
use Office365\Runtime\ResourcePath;
/**
* SharePoint specific entity
* @method ClientContext getContext()
*/
class BaseEntityCollection extends ClientObjectCollection
{
/**
* @var ClientObject|null
*/
private $parent;
/**
* @param ClientRuntimeContext $ctx
* @param ResourcePath|null $resourcePath
* @param string|null $itemTypeName
* @param ClientObject|null $parent
*/
public function __construct(ClientRuntimeContext $ctx,
?ResourcePath $resourcePath = null,
$itemTypeName = null,
?ClientObject $parent=null)
{
parent::__construct($ctx, $resourcePath, $itemTypeName);
$this->parent = $parent;
}
/**
* @return ClientObject|null
*/
public function getParent(){
return $this->parent;
}
}