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