]> BookStack Code Mirror - bookstack/blobdiff - app/Interfaces/Sluggable.php
Fixes for CodeStyle vol.2
[bookstack] / app / Interfaces / Sluggable.php
index 84f0e5bcd60f6738f623d9d8bffd567b10290c02..24ee1bab2f6faba7ce131ad96134f815377cc738 100644 (file)
@@ -1,18 +1,24 @@
-<?php namespace BookStack\Interfaces;
+<?php
+
+namespace BookStack\Interfaces;
 
 use Illuminate\Database\Eloquent\Builder;
 
 /**
- * Interface Sluggable
+ * Interface Sluggable.
  *
  * Assigned to models that can have slugs.
  * Must have the below properties.
  *
- * @property int $id
+ * @property int    $id
  * @property string $name
+ *
  * @method Builder newQuery
  */
 interface Sluggable
 {
-
-}
\ No newline at end of file
+    /**
+     * Regenerate the slug for this model.
+     */
+    public function refreshSlug(): string;
+}