]> BookStack Code Mirror - bookstack/blob - app/Entities/Models/CoverImageInterface.php
5f781fe02ab5e8e52cf040880bf24429b17d2af7
[bookstack] / app / Entities / Models / CoverImageInterface.php
1 <?php
2
3 namespace BookStack\Entities\Models;
4
5 use Illuminate\Database\Eloquent\Relations\BelongsTo;
6
7 interface CoverImageInterface
8 {
9     /**
10      * Get the cover image for this item.
11      */
12     public function cover(): BelongsTo;
13
14     /**
15      * Get the type of the image model that is used when storing a cover image.
16      */
17     public function coverImageTypeKey(): string;
18 }