Test Setup Failed
Push — main ( abdcb9...2e5f68 )
by Slawomir
04:37
created

UpdatedCommentsPostHeadersUserNameDto   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 28
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getOldUserName() 0 3 1
A getNewUserName() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
namespace App\Modules\Comments\Domain\Dto;
4
5
class UpdatedCommentsPostHeadersUserNameDto
6
{
7
8
    /**
9
     * @param string $oldUserName
10
     * @param string $newUserName
11
     */
12
    public function __construct(
13
        private string $oldUserName,
14
        private string $newUserName
15
    )
16
    {
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getOldUserName(): string
23
    {
24
        return $this->oldUserName;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getNewUserName(): string
31
    {
32
        return $this->newUserName;
33
    }
34
35
36
}