proxitok/app/Models/VideoTemplate.php

23 lines
513 B
PHP
Raw Normal View History

2022-04-10 10:10:48 +00:00
<?php
namespace App\Models;
/**
* Base for templates with a feed
*/
class VideoTemplate extends BaseTemplate {
public object $item;
public object $detail;
2022-04-10 10:10:48 +00:00
public string $layout = 'hero';
function __construct(object $item, object $detail, bool $isEmbed = false) {
2022-04-10 10:10:48 +00:00
parent::__construct('Video');
$this->item = $item;
$this->detail = $detail;
2022-04-10 10:10:48 +00:00
if ($isEmbed) {
$this->layout = 'embed';
} else {
$this->layout = 'hero';
}
}
}