2323 * @author Uwe Jäger <uwej711@googlemail.com>
2424 * @author Daniel Leech <daniel@dantleech.com>
2525 */
26- class MenuNodeBase implements NodeInterface, ChildInterface
26+ class MenuNodeBase implements NodeInterface
2727{
2828 /**
2929 * Id of this menu node.
@@ -32,13 +32,6 @@ class MenuNodeBase implements NodeInterface, ChildInterface
3232 */
3333 protected $ id ;
3434
35- /**
36- * Parent node.
37- *
38- * @var mixed
39- */
40- protected $ parent ;
41-
4235 /**
4336 * Node name.
4437 *
@@ -154,7 +147,7 @@ public function __construct($name = null)
154147 }
155148
156149 /**
157- * Return ID (PHPCR path) of this menu node
150+ * Return ID of this menu node
158151 *
159152 * @return string
160153 */
@@ -164,9 +157,7 @@ public function getId()
164157 }
165158
166159 /**
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.
170161 *
171162 * @param $id string
172163 *
@@ -179,48 +170,6 @@ public function setId($id)
179170 return $ this ;
180171 }
181172
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-
224173 /**
225174 * {@inheritDoc}
226175 */
@@ -284,9 +233,9 @@ public function setLabel($label)
284233 }
285234
286235 /**
287- * Return the URI
236+ * Return the URI this menu node points to.
288237 *
289- * @return $uri string
238+ * @return string URI
290239 */
291240 public function getUri ()
292241 {
0 commit comments