<?php
namespace Engine\Menu\View; abstract class ViewAbstract { protected $menu; public function initializeDefaults() { $menu = \App\Menu\Structure\CurrentUserMenu::getInstance(); $this->setMenu($menu); return $this; } public function setMenu(\App\Menu\Structure\Menu $menu) { $this->menu = $menu; return $this; } public function getMenu() { return $this->menu; } abstract public function render(); } 