diff options
Diffstat (limited to 'config/bookmarks.php')
-rw-r--r-- | config/bookmarks.php | 53 |
1 files changed, 2 insertions, 51 deletions
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 @@ <?php -class Bookmark { - /** - * @var string The name of the bookmark. - */ - public $name; - - /** - * @var string The URL of the bookmark. - */ - public $url; - - /** - * @var string The description of the bookmark. - */ - public $description; - - /** - * Bookmark constructor. - * @param string $name The name of the bookmark. - * @param string $url The URL of the bookmark. - * @param string $description The description of the bookmark. - */ - public function __construct($name, $url, $description) { - $this->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", [ |