BookStack/app/App/Sluggable.php

19 lines
298 B
PHP
Raw Normal View History

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