]> BookStack Code Mirror - bookstack/blob - app/Entities/HasCoverImage.php
Updated styles to use logical properties/values
[bookstack] / app / Entities / HasCoverImage.php
1 <?php
2
3
4 namespace BookStack\Entities;
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 }