Move classes to models folder
This commit is contained in:
parent
cf2c13fa26
commit
ad7f3fca65
6 changed files with 113 additions and 131 deletions
29
app/Models/Bookmark.php
Normal file
29
app/Models/Bookmark.php
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue