mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-10-22 07:52:19 +03:00
Updated html description code to be behind a proper interface. Set new convention for mode traits/interfaces.
19 lines
378 B
PHP
19 lines
378 B
PHP
<?php
|
|
|
|
namespace BookStack\Entities\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
interface CoverImageInterface
|
|
{
|
|
/**
|
|
* Get the cover image for this item.
|
|
*/
|
|
public function cover(): BelongsTo;
|
|
|
|
/**
|
|
* Get the type of the image model that is used when storing a cover image.
|
|
*/
|
|
public function coverImageTypeKey(): string;
|
|
}
|