From b13defed114c3da04e68650c00aac02eed0dee18 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sun, 5 Apr 2020 11:33:23 +0800 Subject: [PATCH] Replace link with route in menu Item --- Menu/Item.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Menu/Item.php b/Menu/Item.php index 14e178f..fd800f8 100644 --- a/Menu/Item.php +++ b/Menu/Item.php @@ -6,7 +6,7 @@ class Item { protected $id; protected $icon; - protected $link; + protected $route; protected $label; protected $children; protected $selected; @@ -17,7 +17,7 @@ class Item { $this->id = ''; $this->icon = null; - $this->link = null; + $this->route = null; $this->label = ''; $this->children = []; $this->selected = false; @@ -38,9 +38,9 @@ class Item return $this; } - public function setLink($link) + public function setRoute($route) { - $this->link = $link; + $this->route = $route; return $this; } @@ -99,9 +99,9 @@ class Item return $this->icon; } - public function getLink() + public function getRoute() { - return $this->link; + return $this->route; } public function getLabel()