mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented tests for EntityDomService and refactored code
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
namespace Infinito\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*
|
||||
* @see TextAttributInterface
|
||||
*/
|
||||
trait TextAttribut
|
||||
{
|
||||
/**
|
||||
@@ -9,11 +14,17 @@ trait TextAttribut
|
||||
*/
|
||||
protected $text;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getText(): string
|
||||
{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $text
|
||||
*/
|
||||
public function setText(string $text): void
|
||||
{
|
||||
$this->text = $text;
|
||||
|
@@ -9,6 +9,11 @@ use Infinito\Entity\UserInterface;
|
||||
*/
|
||||
interface UserAttributInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const USER_ATTRIBUT_NAME = 'user';
|
||||
|
||||
/**
|
||||
* @param UserInterface $user
|
||||
*/
|
||||
|
Reference in New Issue
Block a user