CreateNewUserDto   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getEncryptedPassword() 0 3 1
A getRoles() 0 3 1
A getLogin() 0 3 1
1
<?php
2
3
namespace App\Modules\Security\Domain\Dto;
4
5
class CreateNewUserDto
6
{
7
8
    /**
9
     * @param string $login
10
     * @param string $encryptedPassword
11
     * @param array $roles
12
     */
13 1
    public function __construct(
14
        private string $login,
15
        private string $encryptedPassword,
16
        private array  $roles
17
    )
18
    {
19 1
    }
20
21
    /**
22
     * @return string
23
     */
24 1
    public function getLogin(): string
25
    {
26 1
        return $this->login;
27
    }
28
29
    /**
30
     * @return string
31
     */
32 1
    public function getEncryptedPassword(): string
33
    {
34 1
        return $this->encryptedPassword;
35
    }
36
37
    /**
38
     * @return array<string>
39
     */
40 1
    public function getRoles(): array
41
    {
42 1
        return $this->roles;
43
    }
44
45
46
}