Add Timestampable traitpull/3543/head
parent
c9546d79b5
commit
1c84aade8f
@ -0,0 +1,25 @@ |
||||
<?php |
||||
|
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\CoreBundle\Traits; |
||||
|
||||
use Chamilo\CoreBundle\Entity\User; |
||||
|
||||
trait UserTrait |
||||
{ |
||||
/** |
||||
* @return User |
||||
*/ |
||||
public function getUser() |
||||
{ |
||||
return $this->user; |
||||
} |
||||
|
||||
public function setUser(User $user): self |
||||
{ |
||||
$this->user = $user; |
||||
|
||||
return $this; |
||||
} |
||||
} |
Loading…
Reference in new issue