1
0
cms11/app/Services/BundleRenderers/Contracts/RendersBundle.php

30 lines
681 B
PHP
Raw Normal View History

<?php
namespace App\Services\BundleRenderers\Contracts;
use App\Classes\Bundle;
interface RendersBundle
{
/**
* Renders a complete HTML view of the bundle
*/
public function render();
2024-04-23 21:04:39 +02:00
/**
* Renders a card HTML view of the bundle, suitable to display in lists
*/
public function renderCard();
/**
* Return a boolean value indicating if this creator in particular can
* create bundles for specified section
*/
public static function handles(Bundle $bundle): bool;
/**
* Return an instance of the creator, using specified data as input
*/
public static function make(Bundle $bundle): RendersBundle;
}