From 0e2e1a21f8af59a183b137a288183a47c99f7cd3 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 10 Jul 2019 20:04:28 +0200 Subject: [PATCH] #2878 --- src/app/Magic/Menu/Item.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/Magic/Menu/Item.php b/src/app/Magic/Menu/Item.php index 0f2cc82..6ba8316 100644 --- a/src/app/Magic/Menu/Item.php +++ b/src/app/Magic/Menu/Item.php @@ -34,12 +34,12 @@ class Item * @var string */ - protected $_href; + protected $_href = ''; /** * @var array */ - protected $_classes=[]; + protected $_classes = []; /** * @param string $id @@ -150,7 +150,15 @@ class Item */ public function getHref() { + return $this->_href; + } + /** + * @param string $href + */ + public function setHref(string $href): void + { + $this->_href = $href; } /** -- 2.39.5