Merged with new-api

This commit is contained in:
Pablo Ferreiro 2022-03-11 22:59:16 +01:00
commit a4a4b0497c
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
21 changed files with 145 additions and 78 deletions

View file

@ -1,16 +0,0 @@
<?php
namespace App\Models;
use TikScraper\Models\Discover;
/**
* Base for templates with a feed
*/
class DiscoverTemplate extends BaseTemplate {
public Discover $feed;
function __construct(Discover $feed) {
parent::__construct('Discover');
$this->feed = $feed;
}
}

View file

@ -1,15 +1,13 @@
<?php
namespace App\Models;
use TikScraper\Models\Feed;
/**
* Base for templates with a feed
*/
class FeedTemplate extends BaseTemplate {
public Feed $feed;
public object $feed;
function __construct(string $title, Feed $feed) {
function __construct(string $title, object $feed) {
parent::__construct($title);
$this->feed = $feed;
}