BookStack/app/Interfaces/Sluggable.php

25 lines
406 B
PHP
Raw Normal View History

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