Completed
Push — master ( 65f314...a56b5d )
by Paweł
08:26
created

User::getExternalId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Superdesk Web Publisher User Bundle.
7
 *
8
 * Copyright 2016 Sourcefabric z.ú. and contributors.
9
 *
10
 * For the full copyright and license information, please see the
11
 * AUTHORS and LICENSE files distributed with this source code.
12
 *
13
 * @copyright 2016 Sourcefabric z.ú
14
 * @license http://www.superdesk.org/license
15
 */
16
17
namespace SWP\Bundle\UserBundle\Model;
18
19
use FOS\UserBundle\Model\User as BaseUser;
20
use SWP\Component\Common\Model\TimestampableTrait;
21
22
class User extends BaseUser implements UserInterface
23
{
24
    use TimestampableTrait;
25
26
    /**
27
     * @var string
28
     */
29
    protected $firstName;
30
31
    /**
32
     * @var string
33
     */
34
    protected $lastName;
35
36
    /**
37
     * @var string
38
     */
39
    protected $about;
40
41
    /**
42
     * @var string
43
     */
44
    protected $externalId;
45
46
    /**
47
     * User constructor.
48
     */
49
    public function __construct()
50
    {
51
        $this->setCreatedAt(new \DateTime());
52
53
        parent::__construct();
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function getAbout()
60
    {
61
        return $this->about;
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function setAbout(string $about = null)
68
    {
69
        $this->about = $about;
70
    }
71
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function getFirstName()
76
    {
77
        return $this->firstName;
78
    }
79
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function setFirstName(string $firstName)
84
    {
85
        $this->firstName = $firstName;
86
    }
87
88
    /**
89
     * {@inheritdoc}
90
     */
91
    public function getLastName()
92
    {
93
        return $this->lastName;
94
    }
95
96
    /**
97
     * {@inheritdoc}
98
     */
99
    public function setLastName(string $lastName)
100
    {
101
        $this->lastName = $lastName;
102
    }
103
104
    /**
105
     * {@inheritdoc}
106
     */
107
    public function getExternalId()
108
    {
109
        return $this->externalId;
110
    }
111
112
    /**
113
     * {@inheritdoc}
114
     */
115
    public function setExternalId(string $externalId)
116
    {
117
        $this->externalId = $externalId;
118
    }
119
}
120