Files
nhgooi.nl/srv/api/common/classes/NewsSource.php
Jorit Tijsen 55aa88c0f6 Test version
2024-03-05 17:22:55 +01:00

26 lines
484 B
PHP

<?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;
}
}