From: Vincent Vanwaelscappel Date: Wed, 10 Jul 2019 18:04:28 +0000 (+0200) Subject: #2878 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0e2e1a21f8af59a183b137a288183a47c99f7cd3;p=cubist_cms-back.git #2878 --- 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; } /**