BookStackApp/BookStack

View on GitHub
app/App/Sluggable.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace BookStack\App;

/**
 * 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;
}