Passed
Push — master ( afa595...3d30f2 )
by Marcel
08:58
created

ActiveDirectoryUser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace App\Response;
4
5
class ActiveDirectoryUser {
6
7
    public readonly string $username;
8
    public readonly string $firstname;
9
    public readonly string $lastname;
10
    public readonly ?string $grade;
11
    public readonly string $guid;
12
13
    public function __construct(string $username,  string $firstname, string $lastname, ?string $grade, string $guid) {
14
        $this->username = $username;
0 ignored issues
show
Bug introduced by
The property username is declared read-only in App\Response\ActiveDirectoryUser.
Loading history...
15
        $this->firstname = $firstname;
0 ignored issues
show
Bug introduced by
The property firstname is declared read-only in App\Response\ActiveDirectoryUser.
Loading history...
16
        $this->lastname = $lastname;
0 ignored issues
show
Bug introduced by
The property lastname is declared read-only in App\Response\ActiveDirectoryUser.
Loading history...
17
        $this->grade = $grade;
0 ignored issues
show
Bug introduced by
The property grade is declared read-only in App\Response\ActiveDirectoryUser.
Loading history...
18
        $this->guid = $guid;
0 ignored issues
show
Bug introduced by
The property guid is declared read-only in App\Response\ActiveDirectoryUser.
Loading history...
19
    }
20
}