mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-25 11:19:39 +03:00
19 lines
395 B
PHP
19 lines
395 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace BookStack\Entities\Models;
|
||
|
|
|
||
|
|
use BookStack\Entities\Tools\EntityCover;
|
||
|
|
use BookStack\Uploads\Image;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
interface HasCoverInterface
|
||
|
|
{
|
||
|
|
public function coverInfo(): EntityCover;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The cover image of this entity.
|
||
|
|
* @return BelongsTo<Image, covariant Entity>
|
||
|
|
*/
|
||
|
|
public function cover(): BelongsTo;
|
||
|
|
}
|