mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-28 03:33:37 +08:00
19 lines
305 B
PHP
19 lines
305 B
PHP
<?php
|
|
|
|
namespace BookStack\Interfaces;
|
|
|
|
/**
|
|
* Assigned to models that can have slugs.
|
|
* Must have the below properties.
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
*/
|
|
interface Sluggable
|
|
{
|
|
/**
|
|
* Regenerate the slug for this model.
|
|
*/
|
|
public function refreshSlug(): string;
|
|
}
|