|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlgoWeb\ODataMetadata\MetadataV3\edm; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* Class representing TAssociationType |
|
7
|
|
|
* |
|
8
|
|
|
* |
|
9
|
|
|
* XSD Type: TAssociation |
|
10
|
|
|
*/ |
|
11
|
|
|
class TAssociationType |
|
12
|
|
|
{ |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* @property string $name |
|
16
|
|
|
*/ |
|
17
|
|
|
private $name = null; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation |
|
21
|
|
|
*/ |
|
22
|
|
|
private $documentation = null; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TAssociationEndType[] $end |
|
26
|
|
|
*/ |
|
27
|
|
|
private $end = array( |
|
28
|
|
|
|
|
29
|
|
|
); |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TConstraintType $referentialConstraint |
|
33
|
|
|
*/ |
|
34
|
|
|
private $referentialConstraint = null; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Gets as name |
|
38
|
|
|
* |
|
39
|
|
|
* @return string |
|
40
|
|
|
*/ |
|
41
|
|
|
public function getName() |
|
42
|
|
|
{ |
|
43
|
|
|
return $this->name; |
|
44
|
|
|
} |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* Sets a new name |
|
48
|
|
|
* |
|
49
|
|
|
* @param string $name |
|
50
|
|
|
* @return self |
|
51
|
|
|
*/ |
|
52
|
|
|
public function setName($name) |
|
53
|
|
|
{ |
|
54
|
|
|
$this->name = $name; |
|
55
|
|
|
return $this; |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* Gets as documentation |
|
60
|
|
|
* |
|
61
|
|
|
* @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType |
|
62
|
|
|
*/ |
|
63
|
|
|
public function getDocumentation() |
|
64
|
|
|
{ |
|
65
|
|
|
return $this->documentation; |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* Sets a new documentation |
|
70
|
|
|
* |
|
71
|
|
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation |
|
72
|
|
|
* @return self |
|
73
|
|
|
*/ |
|
74
|
|
|
public function setDocumentation(TDocumentationType $documentation) |
|
75
|
|
|
{ |
|
76
|
|
|
$this->documentation = $documentation; |
|
77
|
|
|
return $this; |
|
78
|
|
|
} |
|
79
|
|
|
|
|
80
|
|
|
/** |
|
81
|
|
|
* Adds as end |
|
82
|
|
|
* |
|
83
|
|
|
* @return self |
|
84
|
|
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TAssociationEndType $end |
|
85
|
|
|
*/ |
|
86
|
|
|
public function addToEnd(TAssociationEndType $end) |
|
87
|
|
|
{ |
|
88
|
|
|
$this->end[] = $end; |
|
89
|
|
|
return $this; |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* isset end |
|
94
|
|
|
* |
|
95
|
|
|
* @param scalar $index |
|
96
|
|
|
* @return boolean |
|
97
|
|
|
*/ |
|
98
|
|
|
public function issetEnd($index) |
|
99
|
|
|
{ |
|
100
|
|
|
return isset($this->end[$index]); |
|
101
|
|
|
} |
|
102
|
|
|
|
|
103
|
|
|
/** |
|
104
|
|
|
* unset end |
|
105
|
|
|
* |
|
106
|
|
|
* @param scalar $index |
|
107
|
|
|
* @return void |
|
108
|
|
|
*/ |
|
109
|
|
|
public function unsetEnd($index) |
|
110
|
|
|
{ |
|
111
|
|
|
unset($this->end[$index]); |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
/** |
|
115
|
|
|
* Gets as end |
|
116
|
|
|
* |
|
117
|
|
|
* @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TAssociationEndType[] |
|
118
|
|
|
*/ |
|
119
|
|
|
public function getEnd() |
|
120
|
|
|
{ |
|
121
|
|
|
return $this->end; |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
/** |
|
125
|
|
|
* Sets a new end |
|
126
|
|
|
* |
|
127
|
|
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TAssociationEndType[] $end |
|
128
|
|
|
* @return self |
|
129
|
|
|
*/ |
|
130
|
|
|
public function setEnd(array $end) |
|
131
|
|
|
{ |
|
132
|
|
|
$this->end = $end; |
|
133
|
|
|
return $this; |
|
134
|
|
|
} |
|
135
|
|
|
|
|
136
|
|
|
/** |
|
137
|
|
|
* Gets as referentialConstraint |
|
138
|
|
|
* |
|
139
|
|
|
* @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TConstraintType |
|
140
|
|
|
*/ |
|
141
|
|
|
public function getReferentialConstraint() |
|
142
|
|
|
{ |
|
143
|
|
|
return $this->referentialConstraint; |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* Sets a new referentialConstraint |
|
148
|
|
|
* |
|
149
|
|
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TConstraintType $referentialConstraint |
|
150
|
|
|
* @return self |
|
151
|
|
|
*/ |
|
152
|
|
|
public function setReferentialConstraint(TConstraintType $referentialConstraint) |
|
153
|
|
|
{ |
|
154
|
|
|
$this->referentialConstraint = $referentialConstraint; |
|
155
|
|
|
return $this; |
|
156
|
|
|
} |
|
157
|
|
|
} |
|
158
|
|
|
|