mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-25 11:19:39 +03:00
21 lines
367 B
PHP
21 lines
367 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace BookStack\Entities;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
interface HasCoverImage
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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;
|
||
|
|
}
|