fix: make configs serializable
This commit is contained in:
		
					parent
					
						
							
								e5ac640025
							
						
					
				
			
			
				commit
				
					
						c7a1b41a19
					
				
			
		
					 8 changed files with 175 additions and 207 deletions
				
			
		|  | @ -1,31 +0,0 @@ | |||
| <?php | ||||
| namespace App\Models; | ||||
| 
 | ||||
| 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; | ||||
|     } | ||||
| } | ||||
|  | @ -1,24 +0,0 @@ | |||
| <?php | ||||
| namespace App\Models; | ||||
| 
 | ||||
| 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; | ||||
|     } | ||||
| } | ||||
|  | @ -1,38 +0,0 @@ | |||
| <?php | ||||
| namespace App\Models; | ||||
| 
 | ||||
| class Project { | ||||
|     /** | ||||
|      * @var string The name of the project. | ||||
|      */ | ||||
|     public $name; | ||||
| 
 | ||||
|     /** | ||||
|      * @var string The description of the project. | ||||
|      */ | ||||
|     public $description; | ||||
| 
 | ||||
|     /** | ||||
|      * @var string The URL of the project. | ||||
|      */ | ||||
|     public $url; | ||||
| 
 | ||||
|     /** | ||||
|      * @var array Languages used in the project. | ||||
|      */ | ||||
|     public $languages; | ||||
| 
 | ||||
|     /** | ||||
|      * BookmarkCategory constructor. | ||||
|      * @param string $name The name of the project. | ||||
|      * @param string $description The description of the project. | ||||
|      * @param string The URL of the project. | ||||
|      * @param array  $languages Languages used in the project.s | ||||
|      */ | ||||
|     public function __construct($name, $description, $url, $languages = array()) { | ||||
|         $this->name = $name; | ||||
|         $this->description = $description; | ||||
|         $this->url = $url; | ||||
|         $this->languages = $languages; | ||||
|     } | ||||
| } | ||||
|  | @ -1,24 +0,0 @@ | |||
| <?php | ||||
| namespace App\Models; | ||||
| 
 | ||||
| class ProjectCategory { | ||||
|     /** | ||||
|      * @var string The name of the bookmark category. | ||||
|      */ | ||||
|     public $name; | ||||
| 
 | ||||
|     /** | ||||
|      * @var array An array of Project objects. | ||||
|      */ | ||||
|     public $projects; | ||||
| 
 | ||||
|     /** | ||||
|      * BookmarkCategory constructor. | ||||
|      * @param string $name The name of the bookmark category. | ||||
|      * @param array $projects An array of Project objects. | ||||
|      */ | ||||
|     public function __construct($name, $projects = array()) { | ||||
|         $this->name = $name; | ||||
|         $this->projects = $projects; | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Frankie B
				Frankie B