mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-25 13:12:22 +01:00
27 lines
349 B
PHP
27 lines
349 B
PHP
|
<?php
|
||
|
namespace App\Entity\Attribut;
|
||
|
|
||
|
use App\Entity\User;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author kevinfrantz
|
||
|
*
|
||
|
*/
|
||
|
trait UserAttribut {
|
||
|
|
||
|
/**
|
||
|
* @var User
|
||
|
*/
|
||
|
protected $user;
|
||
|
|
||
|
public function setUser(User $user):void{
|
||
|
$this->user = $user;
|
||
|
}
|
||
|
|
||
|
public function getUser():User{
|
||
|
return $this->user;
|
||
|
}
|
||
|
}
|
||
|
|