UpdateUserProfileCommand::getLastName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace App\Command;
4
5
use Ramsey\Uuid\UuidInterface;
6
7
class UpdateUserProfileCommand implements CommandInterface
8
{
9
    /**
10
     * @var UuidInterface
11
     */
12
    private $id;
13
    /**
14
     * @var string
15
     */
16
    private $firstName;
17
    /**
18
     * @var string
19
     */
20
    private $lastName;
21
    /**
22
     * @var string
23
     */
24
    private $email;
25
    /**
26
     * @var ?string
27
     */
28
    private $plainPassword;
29
    
30
    /**
31
     * @param UuidInterface $id
32
     * @param string $firstName
33
     * @param string $lastName
34
     * @param string $email
35
     * @param ?string $plainPassword
36
     */
37 2
    public function __construct(
38
        UuidInterface $id,
39
        string $firstName,
40
        string $lastName,
41
        string $email,
42
        ?string $plainPassword)
43
    {
44 2
        $this->id = $id;
45 2
        $this->firstName = $firstName;
46 2
        $this->lastName = $lastName;
47 2
        $this->email = $email;
48 2
        $this->plainPassword = $plainPassword;
49 2
    }
50
    
51
    /**
52
     * @return UuidInterface
53
     */
54 2
    public function getId(): UuidInterface
55
    {
56 2
        return $this->id;
57
    }
58
    
59
    /**
60
     * @return string
61
     */
62 2
    public function getFirstName(): string
63
    {
64 2
        return $this->firstName;
65
    }
66
67
    /**
68
     * @return string
69
     */
70 2
    public function getLastName(): string
71
    {
72 2
        return $this->lastName;
73
    }
74
75
    /**
76
     * @return string
77
     */
78 2
    public function getEmail(): string
79
    {
80 2
        return $this->email;
81
    }
82
83
    /**
84
     * @return ?string
85
     */
86 2
    public function getPlainPassword(): ?string
87
    {
88 2
        return $this->plainPassword;
89
    }
90
}
91