Model classes van API repo naar deze repo verplaatst

This commit is contained in:
NH Gooi
2024-09-29 19:05:03 +02:00
parent 8d1e79f1b7
commit 9698f9b103
17 changed files with 674 additions and 29 deletions

25
app/Models/NewsSource.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace Model;
class NewsRegion {
public $title;
public $slug;
public function __construct($title, $slug = null) {
$this->title = $title;
$this->slug = $slug ? $slug : strtolower(str_replace(' ', '', $title));
}
}
class NewsSource {
public $title;
public $url;
public $show;
public function __construct($title, $url, $show) {
$this->title = $title;
$this->url = $url;
$this->show = $show;
}
}