infinito/application/symfony/src/Attribut/SlugAttributInterface.php

27 lines
407 B
PHP
Raw Normal View History

2018-11-23 18:17:00 +01:00
<?php
2019-01-20 10:41:58 +01:00
namespace App\Attribut;
2018-11-23 18:17:00 +01:00
2019-01-13 16:32:00 +01:00
/**
* @author kevinfrantz
*/
2018-11-23 18:17:00 +01:00
interface SlugAttributInterface
{
2019-02-07 14:32:23 +01:00
const SLUG_ATTRIBUT_NAME = 'slug';
2019-01-13 16:32:00 +01:00
/**
* @param string $slug
*/
2018-11-23 18:17:00 +01:00
public function setSlug(string $slug): void;
2019-01-13 16:32:00 +01:00
/**
* @return string
*/
2018-11-23 18:17:00 +01:00
public function getSlug(): string;
2019-01-13 16:32:00 +01:00
/**
* @return bool Checks if a slug is set
*/
public function hasSlug(): bool;
2018-11-23 18:17:00 +01:00
}