30 lines
395 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
trait SlugAttribut
{
/**
* @var string
*/
protected $slug;
public function setSlug(string $slug): void
{
$this->slug = $slug;
}
public function getSlug(): string
{
return $this->slug;
}
2019-01-13 16:32:00 +01:00
public function hasSlug(): bool
{
return isset($this->slug);
}
2018-11-23 18:17:00 +01:00
}