infinito/application/src/Entity/Attribut/UserAttribut.php

27 lines
334 B
PHP
Raw Normal View History

2018-09-13 14:39:03 +02:00
<?php
2018-09-13 16:51:58 +02:00
2018-09-13 14:39:03 +02:00
namespace App\Entity\Attribut;
use App\Entity\User;
/**
* @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
public function setUser(User $user): void
{
2018-09-13 14:39:03 +02:00
$this->user = $user;
}
2018-09-13 16:51:58 +02:00
public function getUser(): User
{
2018-09-13 14:39:03 +02:00
return $this->user;
}
}