2018-09-13 14:39:03 +02:00
|
|
|
<?php
|
2018-09-13 16:51:58 +02:00
|
|
|
|
2019-01-20 10:41:58 +01:00
|
|
|
namespace App\Attribut;
|
2018-09-13 14:39:03 +02:00
|
|
|
|
|
|
|
use App\Entity\User;
|
2018-10-03 15:50:46 +02:00
|
|
|
use App\Entity\UserInterface;
|
2018-09-13 14:39:03 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2018-09-13 16:51:58 +02:00
|
|
|
trait UserAttribut
|
|
|
|
{
|
2018-09-13 14:39:03 +02:00
|
|
|
/**
|
|
|
|
* @var User
|
|
|
|
*/
|
|
|
|
protected $user;
|
2018-09-13 16:51:58 +02:00
|
|
|
|
2018-09-24 18:41:26 +02:00
|
|
|
public function setUser(UserInterface $user): void
|
2018-09-13 16:51:58 +02:00
|
|
|
{
|
2018-09-13 14:39:03 +02:00
|
|
|
$this->user = $user;
|
|
|
|
}
|
2018-09-13 16:51:58 +02:00
|
|
|
|
2018-09-24 18:41:26 +02:00
|
|
|
public function getUser(): UserInterface
|
2018-09-13 16:51:58 +02:00
|
|
|
{
|
2018-09-13 14:39:03 +02:00
|
|
|
return $this->user;
|
|
|
|
}
|
|
|
|
}
|