2019-01-20 10:41:58 +01:00

30 lines
395 B
PHP

<?php
namespace App\Attribut;
/**
* @author kevinfrantz
*/
trait SlugAttribut
{
/**
* @var string
*/
protected $slug;
public function setSlug(string $slug): void
{
$this->slug = $slug;
}
public function getSlug(): string
{
return $this->slug;
}
public function hasSlug(): bool
{
return isset($this->slug);
}
}