23
23
* @author Uwe Jäger <[email protected] >
24
24
* @author Daniel Leech <[email protected] >
25
25
*/
26
- class MenuNodeBase implements NodeInterface, ChildInterface
26
+ class MenuNodeBase implements NodeInterface
27
27
{
28
28
/**
29
29
* Id of this menu node.
@@ -32,13 +32,6 @@ class MenuNodeBase implements NodeInterface, ChildInterface
32
32
*/
33
33
protected $ id ;
34
34
35
- /**
36
- * Parent node.
37
- *
38
- * @var mixed
39
- */
40
- protected $ parent ;
41
-
42
35
/**
43
36
* Node name.
44
37
*
@@ -154,7 +147,7 @@ public function __construct($name = null)
154
147
}
155
148
156
149
/**
157
- * Return ID (PHPCR path) of this menu node
150
+ * Return ID of this menu node
158
151
*
159
152
* @return string
160
153
*/
@@ -164,9 +157,7 @@ public function getId()
164
157
}
165
158
166
159
/**
167
- * Sets ID (PHPCR path) of this menu node
168
- *
169
- * The recommended way is to use setParent and setName rather than setId.
160
+ * Sets ID of this menu node.
170
161
*
171
162
* @param $id string
172
163
*
@@ -179,48 +170,6 @@ public function setId($id)
179
170
return $ this ;
180
171
}
181
172
182
- /**
183
- * @deprecated Use setParentDocument instead.
184
- */
185
- public function setParent ($ parent )
186
- {
187
- $ this ->parent = $ parent ;
188
-
189
- return $ this ;
190
- }
191
-
192
- /**
193
- * @deprecated Use getParentDocument instead.
194
- */
195
- public function getParent ()
196
- {
197
- return $ this ->parent ;
198
- }
199
-
200
- /**
201
- * Set the parent of this menu node
202
- *
203
- * @param $parent MenuNode - Parent node
204
- *
205
- * @return MenuNode - this instance
206
- */
207
- public function setParentDocument ($ parent )
208
- {
209
- $ this ->parent = $ parent ;
210
-
211
- return $ this ;
212
- }
213
-
214
- /**
215
- * Returns the parent of this menu node
216
- *
217
- * @return object
218
- */
219
- public function getParentDocument ()
220
- {
221
- return $ this ->parent ;
222
- }
223
-
224
173
/**
225
174
* {@inheritDoc}
226
175
*/
@@ -284,9 +233,9 @@ public function setLabel($label)
284
233
}
285
234
286
235
/**
287
- * Return the URI
236
+ * Return the URI this menu node points to.
288
237
*
289
- * @return $uri string
238
+ * @return string URI
290
239
*/
291
240
public function getUri ()
292
241
{
0 commit comments