]> BookStack Code Mirror - bookstack/blob - app/Entities/Models/HasCoverInterface.php
Images: Added nulling of image page relation on page delete
[bookstack] / app / Entities / Models / HasCoverInterface.php
1 <?php
2
3 namespace BookStack\Entities\Models;
4
5 use BookStack\Entities\Tools\EntityCover;
6 use BookStack\Uploads\Image;
7 use Illuminate\Database\Eloquent\Relations\BelongsTo;
8
9 interface HasCoverInterface
10 {
11     public function coverInfo(): EntityCover;
12
13     /**
14      * The cover image of this entity.
15      * @return BelongsTo<Image, covariant Entity>
16      */
17     public function cover(): BelongsTo;
18 }