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

32 lines
538 B
PHP
Raw Normal View History

2018-11-23 18:17:00 +01:00
<?php
namespace Infinito\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
/**
* Don't use this function to check if a slug is set
* Use instead:.
*
* @see self::hasSlug()
*
* @return string|null
2019-01-13 16:32: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
}