17 lines
310 B
PHP
17 lines
310 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
/**
|
|
* Base for templates with a feed
|
|
*/
|
|
class FeedTemplate extends BaseTemplate {
|
|
public object $data;
|
|
|
|
function __construct(string $title, object $feed) {
|
|
parent::__construct($title);
|
|
$this->data = (object) [
|
|
'feed' => $feed
|
|
];
|
|
}
|
|
}
|