mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Added name source draft
This commit is contained in:
27
application/src/Entity/Attribut/NameAttribut.php
Normal file
27
application/src/Entity/Attribut/NameAttribut.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait NameAttribut {
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
public function setName(string $name): void
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
|
15
application/src/Entity/Attribut/NameAttributInterface.php
Normal file
15
application/src/Entity/Attribut/NameAttributInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface NameAttributInterface
|
||||
{
|
||||
public function setName(string $name):void;
|
||||
|
||||
public function getName():string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user