infinito/application/symfony/src/Attribut/SlugAttributInterface.php
2019-02-17 14:33:19 +01:00

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