mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-27 05:54:02 +01:00
30 lines
395 B
PHP
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);
|
|
}
|
|
}
|