/
HierarchyInterface.php
48 lines (43 loc) · 1.02 KB
/
HierarchyInterface.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
<?php
namespace Doctrine\ODM\PHPCR;
/**
* Interface for objects that resolve to the node type nt:hierarchyNode, like
* the File and Folder documents.
*
* @see http://wiki.apache.org/jackrabbit/nt:hierarchyNode
*/
interface HierarchyInterface
{
/**
* Get the parent document of this document.
*
* @return object|null
*/
public function getParentDocument();
/**
* Get the parent document.
*
* @deprecated in favor of getParentDocument to avoid clashes with domain model parents.
*
* @return object|null
*/
public function getParent();
/**
* Set the parent document for this document.
*
* @param object $parent
*
* @return $this
*/
public function setParentDocument($parent);
/**
* Set the parent document.
*
* @deprecated in favor of getParentDocument to avoid clashes with domain model parents.
*
* @param object $parent
*
* @return $this
*/
public function setParent($parent);
}