Implemented slug for sources

This commit is contained in:
Kevin Frantz
2018-11-23 18:17:00 +01:00
parent 84c2de2283
commit baca225775
6 changed files with 93 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Entity\Attribut;
trait SlugAttribut
{
/**
* @var string
*/
protected $slug;
public function setSlug(string $slug): void
{
$this->slug = $slug;
}
public function getSlug(): string
{
return $this->slug;
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Entity\Attribut;
interface SlugAttributInterface
{
public function setSlug(string $slug): void;
public function getSlug(): string;
}