1 parent
9bee381f6c
commit
30893eb7a7
21 files changed
+276
-85
No files matched your search
@@ -4,11 +4,13 @@ namespace Model;
|
||||
|
||||
class NewsRegion {
|
||||
public $title;
|
||||
public $titel; // Support both English and Dutch spelling
|
||||
public $slug;
|
||||
|
||||
public function __construct($title, $slug = null) {
|
||||
public function __construct($title = null, $slug = null) {
|
||||
$this->title = $title;
|
||||
$this->slug = $slug ? $slug : strtolower(str_replace(' ', '', $title));
|
||||
$this->titel = $title; // Also set titel for compatibility with API responses
|
||||
$this->slug = $slug ? $slug : ($title ? strtolower(str_replace(' ', '', $title)) : null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user