mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-15 14:46:04 +02:00
Implemented slug for sources
This commit is contained in:
21
application/src/Entity/Attribut/SlugAttribut.php
Normal file
21
application/src/Entity/Attribut/SlugAttribut.php
Normal 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;
|
||||
}
|
||||
}
|
10
application/src/Entity/Attribut/SlugAttributInterface.php
Normal file
10
application/src/Entity/Attribut/SlugAttributInterface.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
interface SlugAttributInterface
|
||||
{
|
||||
public function setSlug(string $slug): void;
|
||||
|
||||
public function getSlug(): string;
|
||||
}
|
Reference in New Issue
Block a user