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

UserTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUser() 0 3 1
A setUser() 0 5 1
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