Completed
Push — master ( ceb81d...34dbeb )
by Beñat
07:47
created

EditProfileCommand   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 42
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A id() 0 4 1
A email() 0 4 1
A username() 0 4 1
A firstName() 0 4 1
A lastName() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Kreta package.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 * (c) Gorka Laucirica <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
declare(strict_types=1);
14
15
namespace Kreta\IdentityAccess\Application\Command;
16
17
class EditProfileCommand
18
{
19
    private $id;
20
    private $email;
21
    private $username;
22
    private $firstName;
23
    private $lastName;
24
25
    public function __construct(string $id, string $email, string $username, string $firsName, string $lastName)
26
    {
27
        $this->id = $id;
28
        $this->email = $email;
29
        $this->username = $username;
30
        $this->firstName = $firsName;
31
        $this->lastName = $lastName;
32
    }
33
34
    public function id() : string
35
    {
36
        return $this->id;
37
    }
38
39
    public function email() : string
40
    {
41
        return $this->email;
42
    }
43
44
    public function username() : string
45
    {
46
        return $this->username;
47
    }
48
49
    public function firstName() : string
50
    {
51
        return $this->firstName;
52
    }
53
54
    public function lastName() : string
55
    {
56
        return $this->lastName;
57
    }
58
}
59