mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 06:47:31 +01:00
27 lines
477 B
PHP
27 lines
477 B
PHP
<?php
|
|
|
|
namespace App\Entity\Attribut;
|
|
|
|
/**
|
|
* This trait doesn't need an own interface because it's covered by symfony.
|
|
*
|
|
* @author kevinfrantz
|
|
*/
|
|
trait UsernameAttribut
|
|
{
|
|
/**
|
|
* @ORM\Column(type="string", length=25, unique=true)
|
|
*/
|
|
protected $username;
|
|
|
|
public function getUsername(): ?string
|
|
{
|
|
return $this->username;
|
|
}
|
|
|
|
public function setUsername(string $username): void
|
|
{
|
|
$this->username = \trim($username);
|
|
}
|
|
}
|