Passed
Push — master ( 9aa048...898b5e )
by Mattia
04:05
created

UsernameChangeEvent::getPreviousName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Minepic\Events\Account;
6
7
use Minepic\Events\Event;
8
9
class UsernameChangeEvent extends Event
10
{
11
    /**
12
     * @var string
13
     */
14
    private string $uuid;
15
    /**
16
     * @var string
17
     */
18
    private string $previousName;
19
    /**
20
     * @var string
21
     */
22
    private string $newName;
23
24
    public function __construct(string $uuid, string $previousName, string $newName)
25
    {
26
        $this->uuid = $uuid;
27
        $this->previousName = $previousName;
28
        $this->newName = $newName;
29
    }
30
31
    public function getUuid(): string
32
    {
33
        return $this->uuid;
34
    }
35
36
    public function getPreviousName(): string
37
    {
38
        return $this->previousName;
39
    }
40
41
    public function getNewName(): string
42
    {
43
        return $this->newName;
44
    }
45
}
46