From 20e394e9f27aab0cb522f84f3d636b279ecb863e Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 14 Jun 2023 22:52:00 +0100 Subject: Move classes to models folder --- config/bookmarks.php | 53 ++-------------------------------------------------- 1 file changed, 2 insertions(+), 51 deletions(-) (limited to 'config/bookmarks.php') diff --git a/config/bookmarks.php b/config/bookmarks.php index 88e2cd9..3138d69 100644 --- a/config/bookmarks.php +++ b/config/bookmarks.php @@ -1,55 +1,6 @@ name = $name; - $this->url = $url; - $this->description = $description; - } -} - -class BookmarkCategory { - /** - * @var string The name of the bookmark category. - */ - public $name; - - /** - * @var array An array of Bookmark objects. - */ - public $bookmarks; - - /** - * BookmarkCategory constructor. - * @param string $name The name of the bookmark category. - * @param array $bookmarks An array of Bookmark objects. - */ - public function __construct($name, $bookmarks = array()) { - $this->name = $name; - $this->bookmarks = $bookmarks; - } -} - +include 'app/Models/Bookmark.php'; +include 'app/Models/BookmarkCategory.php'; return [ new BookmarkCategory("Friends' Websites", [ -- cgit v1.2.3-54-g00ecf