diff options
author | Frankie B <git@diskfloppy.me> | 2023-06-14 22:52:00 +0100 |
---|---|---|
committer | Frankie B <git@diskfloppy.me> | 2023-06-14 22:52:00 +0100 |
commit | 20e394e9f27aab0cb522f84f3d636b279ecb863e (patch) | |
tree | 12f2bc93f285bd58b036cae0b1d705fba2c40384 /app/Models/Bookmark.php | |
parent | 3a0306ac79f9cc836ba321f672f84ac66631a456 (diff) |
Move classes to models folder
Diffstat (limited to 'app/Models/Bookmark.php')
-rw-r--r-- | app/Models/Bookmark.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/Models/Bookmark.php b/app/Models/Bookmark.php new file mode 100644 index 0000000..f679205 --- /dev/null +++ b/app/Models/Bookmark.php @@ -0,0 +1,29 @@ +<?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; + } +} |