]> _ Git - cubist_cms-back.git/commitdiff
#2878
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Jul 2019 18:04:28 +0000 (20:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Jul 2019 18:04:28 +0000 (20:04 +0200)
src/app/Magic/Menu/Item.php

index 0f2cc82e4344f1b3f0da183eaa51a3ae40f36254..6ba8316aaa5e048315c4f49e8f9d2e9ba506ce95 100644 (file)
@@ -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;
     }
 
     /**