Completed
Push — master ( bbd2b1...f08c3b )
by Kamil
31:47 queued 09:37
created

AdminUser::getEncoderName()   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
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Sylius\Component\Core\Model;
15
16
use Sylius\Component\User\Model\User;
17
18
class AdminUser extends User implements AdminUserInterface
19
{
20
    /** @var string */
21
    protected $firstName;
22
23
    /** @var string */
24
    protected $lastName;
25
26
    /** @var string */
27
    protected $localeCode;
28
29
    public function __construct()
30
    {
31
        parent::__construct();
32
33
        $this->roles = [AdminUserInterface::DEFAULT_ADMIN_ROLE];
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getFirstName(): ?string
40
    {
41
        return $this->firstName;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function setFirstName(?string $firstName): void
48
    {
49
        $this->firstName = $firstName;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function getLastName(): ?string
56
    {
57
        return $this->lastName;
58
    }
59
60
    /**
61
     * {@inheritdoc}
62
     */
63
    public function setLastName(?string $lastName): void
64
    {
65
        $this->lastName = $lastName;
66
    }
67
68
    /**
69
     * {@inheritdoc}
70
     */
71
    public function getLocaleCode(): ?string
72
    {
73
        return $this->localeCode;
74
    }
75
76
    /**
77
     * {@inheritdoc}
78
     */
79
    public function setLocaleCode(?string $code): void
80
    {
81
        $this->localeCode = $code;
82
    }
83
}
84