]> BookStack Code Mirror - bookstack/blob - app/App/Sluggable.php
CommentDisplayTest correct namespace
[bookstack] / app / App / Sluggable.php
1 <?php
2
3 namespace BookStack\App;
4
5 /**
6  * Assigned to models that can have slugs.
7  * Must have the below properties.
8  *
9  * @property int    $id
10  * @property string $name
11  */
12 interface Sluggable
13 {
14     /**
15      * Regenerate the slug for this model.
16      */
17     public function refreshSlug(): string;
18 }