User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 50
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFullName() 0 4 1
1
<?php
2
3
namespace Cothema\Model\User;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use \Kdyby\Doctrine\Entities;
7
8
/**
9
 * @ORM\Entity
10
 * @ORM\Table(name="users")
11
 */
12
class User extends Entities\BaseEntity
13
{
14
15
    use Entities\Attributes\Identifier;
16
17
    /**
18
     * @ORM\Column(name="firstname",type="text")
19
     */
20
    public $firstName;
21
22
    /**
23
     * @ORM\Column(name="lastname",type="text")
24
     */
25
    public $lastName;
26
27
    /**
28
     * @ORM\Column(type="text")
29
     */
30
    public $email;
31
32
    /**
33
     * @ORM\Column(type="boolean")
34
     */
35
    public $active;
36
37
    /**
38
     * @ORM\Column(type="text")
39
     */
40
    public $username;
41
42
    /**
43
     * @ORM\Column(type="text")
44
     */
45
    public $role;
46
47
    /**
48
     * @ORM\Column(type="bigint")
49
     */
50
    public $facebookId;
51
52
    /**
53
     * @ORM\Column(type="text")
54
     */
55
    public $facebookToken;
56
57
    public function getFullName()
58
    {
59
        return trim($this->firstName . " " . $this->lastName);
60
    }
61
}
62