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

ActiveDirectoryUser::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 6
rs 10
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
}