20 lines
403 B
PHP
20 lines
403 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
/**
|
|
* Base for templates with a feed
|
|
*/
|
|
class RSSTemplate {
|
|
public string $title;
|
|
public string $desc;
|
|
public string $link;
|
|
public array $items;
|
|
|
|
function __construct(string $title, string $desc, string $link, array $items) {
|
|
$this->title = $title;
|
|
$this->desc = $desc;
|
|
$this->link = $link;
|
|
$this->items = $items;
|
|
}
|
|
}
|