Completed
Pull Request — master (#240)
by Beñat
04:56
created

EditProfileCommand::firstName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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