Added Text source

This commit is contained in:
Kevin Frantz
2018-11-23 21:30:25 +01:00
parent 0ca2838ae2
commit 4066634af2
7 changed files with 129 additions and 1 deletions

View File

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

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Entity\Attribut;
interface TextAttributInterface
{
public function getText(): string;
public function setText(string $text): void;
}