forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRelation.php
More file actions
159 lines (150 loc) · 4.62 KB
/
Copy pathRelation.php
File metadata and controls
159 lines (150 loc) · 4.62 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Relation 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\TermStore\Model;
/**
* Relation 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 Relation extends \Microsoft\Graph\Model\Entity
{
/**
* Gets the relationship
* The type of relation. Possible values are: pin, reuse.
*
* @return RelationType|null The relationship
*/
public function getRelationship()
{
if (array_key_exists("relationship", $this->_propDict)) {
if (is_a($this->_propDict["relationship"], "\Microsoft\Graph\TermStore\Model\RelationType") || is_null($this->_propDict["relationship"])) {
return $this->_propDict["relationship"];
} else {
$this->_propDict["relationship"] = new RelationType($this->_propDict["relationship"]);
return $this->_propDict["relationship"];
}
}
return null;
}
/**
* Sets the relationship
* The type of relation. Possible values are: pin, reuse.
*
* @param RelationType $val The relationship
*
* @return Relation
*/
public function setRelationship($val)
{
$this->_propDict["relationship"] = $val;
return $this;
}
/**
* Gets the fromTerm
* The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set].
*
* @return Term|null The fromTerm
*/
public function getFromTerm()
{
if (array_key_exists("fromTerm", $this->_propDict)) {
if (is_a($this->_propDict["fromTerm"], "\Microsoft\Graph\TermStore\Model\Term") || is_null($this->_propDict["fromTerm"])) {
return $this->_propDict["fromTerm"];
} else {
$this->_propDict["fromTerm"] = new Term($this->_propDict["fromTerm"]);
return $this->_propDict["fromTerm"];
}
}
return null;
}
/**
* Sets the fromTerm
* The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set].
*
* @param Term $val The fromTerm
*
* @return Relation
*/
public function setFromTerm($val)
{
$this->_propDict["fromTerm"] = $val;
return $this;
}
/**
* Gets the set
* The [set] in which the relation is relevant.
*
* @return Set|null The set
*/
public function getSet()
{
if (array_key_exists("set", $this->_propDict)) {
if (is_a($this->_propDict["set"], "\Microsoft\Graph\TermStore\Model\Set") || is_null($this->_propDict["set"])) {
return $this->_propDict["set"];
} else {
$this->_propDict["set"] = new Set($this->_propDict["set"]);
return $this->_propDict["set"];
}
}
return null;
}
/**
* Sets the set
* The [set] in which the relation is relevant.
*
* @param Set $val The set
*
* @return Relation
*/
public function setSet($val)
{
$this->_propDict["set"] = $val;
return $this;
}
/**
* Gets the toTerm
* The to [term] of the relation. The term to which the relationship is defined.
*
* @return Term|null The toTerm
*/
public function getToTerm()
{
if (array_key_exists("toTerm", $this->_propDict)) {
if (is_a($this->_propDict["toTerm"], "\Microsoft\Graph\TermStore\Model\Term") || is_null($this->_propDict["toTerm"])) {
return $this->_propDict["toTerm"];
} else {
$this->_propDict["toTerm"] = new Term($this->_propDict["toTerm"]);
return $this->_propDict["toTerm"];
}
}
return null;
}
/**
* Sets the toTerm
* The to [term] of the relation. The term to which the relationship is defined.
*
* @param Term $val The toTerm
*
* @return Relation
*/
public function setToTerm($val)
{
$this->_propDict["toTerm"] = $val;
return $this;
}
}