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