28 lines
659 B
PHP
Executable File
28 lines
659 B
PHP
Executable File
<?php
|
|
|
|
namespace Model;
|
|
|
|
class NewsRegion {
|
|
public $title;
|
|
public $titel; // Support both English and Dutch spelling
|
|
public $slug;
|
|
|
|
public function __construct($title = null, $slug = null) {
|
|
$this->title = $title;
|
|
$this->titel = $title; // Also set titel for compatibility with API responses
|
|
$this->slug = $slug ? $slug : ($title ? strtolower(str_replace(' ', '', $title)) : null);
|
|
}
|
|
}
|
|
|
|
class NewsSource {
|
|
public $title;
|
|
public $url;
|
|
public $show;
|
|
|
|
public function __construct($title, $url, $show) {
|
|
$this->title = $title;
|
|
$this->url = $url;
|
|
$this->show = $show;
|
|
}
|
|
}
|