14
14
use Doctrine \Common \Collections \ArrayCollection ;
15
15
use Doctrine \Common \Collections \Collection ;
16
16
use Knp \Menu \NodeInterface ;
17
- use Symfony \Cmf \Bundle \CoreBundle \Model \ChildInterface ;
18
17
19
18
/**
20
19
* This is a persistable implementation of the KnpMenu
@@ -161,7 +160,7 @@ public function getId()
161
160
*
162
161
* @param $id string
163
162
*
164
- * @return MenuNode - this instance
163
+ * @return MenuNodeBase - this instance
165
164
*/
166
165
public function setId ($ id )
167
166
{
@@ -183,7 +182,7 @@ public function getName()
183
182
*
184
183
* @param string $name
185
184
*
186
- * @return MenuNode - this instance
185
+ * @return MenuNodeBase - this instance
187
186
*/
188
187
public function setName ($ name )
189
188
{
@@ -207,7 +206,7 @@ public function getLabel()
207
206
*
208
207
* @param $label string
209
208
*
210
- * @return MenuNode - this instance
209
+ * @return MenuNodeBase - this instance
211
210
*/
212
211
public function setLabel ($ label )
213
212
{
@@ -231,7 +230,7 @@ public function getUri()
231
230
*
232
231
* @param $uri string
233
232
*
234
- * @return MenuNode - this instance
233
+ * @return MenuNodeBase - this instance
235
234
*/
236
235
public function setUri ($ uri )
237
236
{
@@ -255,7 +254,7 @@ public function getRoute()
255
254
*
256
255
* @param $route string - name of route
257
256
*
258
- * @return MenuNode - this instance
257
+ * @return MenuNodeBase - this instance
259
258
*/
260
259
public function setRoute ($ route )
261
260
{
@@ -279,7 +278,7 @@ public function getAttributes()
279
278
*
280
279
* @param $attributes array
281
280
*
282
- * @return MenuNode - this instance
281
+ * @return MenuNodeBase - this instance
283
282
*/
284
283
public function setAttributes (array $ attributes )
285
284
{
@@ -311,7 +310,7 @@ public function getAttribute($name, $default = null)
311
310
* @param string $name attribute name
312
311
* @param string $value attribute value
313
312
*
314
- * @return MenuNode - this instance
313
+ * @return MenuNodeBase - this instance
315
314
*/
316
315
public function setAttribute ($ name , $ value )
317
316
{
@@ -335,7 +334,7 @@ public function getChildrenAttributes()
335
334
*
336
335
* @param array $attributes
337
336
*
338
- * @return MenuNode - this instance
337
+ * @return MenuNodeBase - this instance
339
338
*/
340
339
public function setChildrenAttributes (array $ attributes )
341
340
{
@@ -348,7 +347,7 @@ public function setChildrenAttributes(array $attributes)
348
347
* Get all child menu nodes of this menu node. This will filter out all
349
348
* non-NodeInterface children.
350
349
*
351
- * @return MenuNode []
350
+ * @return NodeInterface []
352
351
*/
353
352
public function getChildren ()
354
353
{
@@ -368,7 +367,7 @@ public function getChildren()
368
367
*
369
368
* @param MenuNode $child
370
369
*
371
- * @return MenuNode - The newly added child node.
370
+ * @return MenuNode The newly added child node.
372
371
*/
373
372
public function addChild (MenuNode $ child )
374
373
{
@@ -381,6 +380,8 @@ public function addChild(MenuNode $child)
381
380
* Remove a child menu node
382
381
*
383
382
* @param MenuNode $child
383
+ *
384
+ * @return MenuNodeBase $this
384
385
*/
385
386
public function removeChild (MenuNode $ child )
386
387
{
@@ -402,7 +403,7 @@ public function getRouteParameters()
402
403
*
403
404
* @param array $routeParameters
404
405
*
405
- * @return MenuNode - this instance
406
+ * @return MenuNodeBase - this instance
406
407
*/
407
408
public function setRouteParameters ($ routeParameters )
408
409
{
@@ -426,7 +427,7 @@ public function getExtras()
426
427
*
427
428
* @param array $extras
428
429
*
429
- * @return MenuNode - this instance
430
+ * @return MenuNodeBase - this instance
430
431
*/
431
432
public function setExtras (array $ extras )
432
433
{
@@ -450,7 +451,7 @@ public function getLinkAttributes()
450
451
*
451
452
* @param array $linkAttributes
452
453
*
453
- * @return MenuNode - this instance
454
+ * @return MenuNodeBase - this instance
454
455
*/
455
456
public function setLinkAttributes ($ linkAttributes )
456
457
{
@@ -474,7 +475,7 @@ public function getLabelAttributes()
474
475
*
475
476
* @param array $labelAttributes
476
477
*
477
- * @return MenuNode - this instance
478
+ * @return MenuNodeBase - this instance
478
479
*/
479
480
public function setLabelAttributes ($ labelAttributes )
480
481
{
@@ -498,7 +499,7 @@ public function getDisplay()
498
499
*
499
500
* @param boolean $display
500
501
*
501
- * @return MenuNode - this instance
502
+ * @return MenuNodeBase - this instance
502
503
*/
503
504
public function setDisplay ($ display )
504
505
{
@@ -522,7 +523,7 @@ public function getDisplayChildren()
522
523
*
523
524
* @param boolean $displayChildren
524
525
*
525
- * @return MenuNode - this instance
526
+ * @return MenuNodeBase - this instance
526
527
*/
527
528
public function setDisplayChildren ($ displayChildren )
528
529
{
@@ -547,7 +548,7 @@ public function getRouteAbsolute()
547
548
*
548
549
* @param boolean $routeAbsolute
549
550
*
550
- * @return MenuNode - this instance
551
+ * @return MenuNodeBase - this instance
551
552
*/
552
553
public function setRouteAbsolute ($ routeAbsolute )
553
554
{
0 commit comments