UpdateUserProfileCommand   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 82
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 82
ccs 17
cts 17
cp 1
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getFirstName() 0 3 1
A __construct() 0 12 1
A getLastName() 0 3 1
A getPlainPassword() 0 3 1
A getId() 0 3 1
A getEmail() 0 3 1
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