diff options
Diffstat (limited to 'app/Models/BookmarkCategory.php')
-rw-r--r-- | app/Models/BookmarkCategory.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/Models/BookmarkCategory.php b/app/Models/BookmarkCategory.php new file mode 100644 index 0000000..0f2335d --- /dev/null +++ b/app/Models/BookmarkCategory.php @@ -0,0 +1,22 @@ +<?php +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; + } +} |