Completed
Push — master ( c9546d...95f607 )
by Julito
09:41
created

UserTrait::setUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Traits;
6
7
use Chamilo\CoreBundle\Entity\User;
8
9
trait UserTrait
10
{
11
    /**
12
     * @return User
13
     */
14
    public function getUser()
15
    {
16
        return $this->user;
17
    }
18
19
    public function setUser(User $user): self
20
    {
21
        $this->user = $user;
22
23
        return $this;
24
    }
25
}
26