1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 23:52:40 +01:00
BookStack/app/Interfaces/Sluggable.php

19 lines
305 B
PHP
Raw Normal View History

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