User::getFullName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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