2021-06-26 17:23:15 +02:00
|
|
|
<?php
|
|
|
|
|
2023-05-17 18:56:55 +02:00
|
|
|
namespace BookStack\App;
|
2021-03-08 23:34:22 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Assigned to models that can have slugs.
|
|
|
|
* Must have the below properties.
|
|
|
|
*
|
2021-06-26 17:23:15 +02:00
|
|
|
* @property int $id
|
2021-03-08 23:34:22 +01:00
|
|
|
* @property string $name
|
|
|
|
*/
|
|
|
|
interface Sluggable
|
|
|
|
{
|
2021-03-10 00:06:12 +01:00
|
|
|
/**
|
|
|
|
* Regenerate the slug for this model.
|
|
|
|
*/
|
|
|
|
public function refreshSlug(): string;
|
2021-06-26 17:23:15 +02:00
|
|
|
}
|