public function delete(Menu $menu);
/** * Delete menu * * @param Menu $menu menu instance * @return bool * @throws CanNotDeleteMenuEntityHaveChildException */ public function remove(Menu $menu) { if ($menu->items->count() > 0) { throw new CanNotDeleteMenuEntityHaveChildException(); } $this->deleteMenuTheme($menu); return $this->repo->delete($menu); }