mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 14:27:28 +01:00
32 lines
538 B
PHP
32 lines
538 B
PHP
<?php
|
|
|
|
namespace Infinito\Attribut;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
interface SlugAttributInterface
|
|
{
|
|
const SLUG_ATTRIBUT_NAME = 'slug';
|
|
|
|
/**
|
|
* @param string $slug
|
|
*/
|
|
public function setSlug(string $slug): void;
|
|
|
|
/**
|
|
* Don't use this function to check if a slug is set
|
|
* Use instead:.
|
|
*
|
|
* @see self::hasSlug()
|
|
*
|
|
* @return string|null
|
|
*/
|
|
public function getSlug(): ?string;
|
|
|
|
/**
|
|
* @return bool Checks if a slug is set
|
|
*/
|
|
public function hasSlug(): bool;
|
|
}
|