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

UserType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace App\Response;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
class UserType {
8
    public readonly string $uuid;
9
10
    public readonly string $name;
11
12
    public readonly string $alias;
13
14
    #[Serializer\Type("array<string>")]
15
    public readonly array $eduPersonAffiliation;
16
17
    /**
18
     * @param string $uuid
19
     * @param string $name
20
     * @param string $alias
21
     * @param string[] $eduPersonAffiliation
22
     */
23
    public function __construct(string $uuid, string $name, string $alias, array $eduPersonAffiliation) {
24
        $this->uuid = $uuid;
0 ignored issues
show
Bug introduced by
The property uuid is declared read-only in App\Response\UserType.
Loading history...
25
        $this->name = $name;
0 ignored issues
show
Bug introduced by
The property name is declared read-only in App\Response\UserType.
Loading history...
26
        $this->alias = $alias;
0 ignored issues
show
Bug introduced by
The property alias is declared read-only in App\Response\UserType.
Loading history...
27
        $this->eduPersonAffiliation = $eduPersonAffiliation;
0 ignored issues
show
Bug introduced by
The property eduPersonAffiliation is declared read-only in App\Response\UserType.
Loading history...
28
    }
29
}