2022-05-24 08:10:41 -04:00
|
|
|
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
2022-11-26 17:51:45 -05:00
|
|
|
use TikScraper\Models\Feed;
|
|
|
|
use TikScraper\Models\Info;
|
2022-05-24 08:10:41 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Base for templates with both info and feed
|
|
|
|
*/
|
|
|
|
class FullTemplate extends BaseTemplate {
|
2022-11-26 17:51:45 -05:00
|
|
|
public Info $info;
|
|
|
|
public Feed $feed;
|
2022-05-24 08:10:41 -04:00
|
|
|
|
2022-11-26 17:51:45 -05:00
|
|
|
function __construct(string $title, Info $info, Feed $feed) {
|
2022-05-24 08:10:41 -04:00
|
|
|
parent::__construct($title);
|
2022-11-26 17:51:45 -05:00
|
|
|
$this->info = $info;
|
|
|
|
$this->feed = $feed;
|
2022-05-24 08:10:41 -04:00
|
|
|
}
|
|
|
|
}
|