Team   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 41
ccs 5
cts 5
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace TestMonitor\DevOps\Resources;
4
5
class Team extends Resource
6
{
7
    /**
8
     * The id of the team.
9
     *
10
     * @var string
11
     */
12
    public $id;
13
14
    /**
15
     * The name of the team.
16
     *
17
     * @var string
18
     */
19
    public $name;
20
21
    /**
22
     * The description of the team.
23
     *
24
     * @var string
25
     */
26
    public $description;
27
28
    /**
29
     * The area path for the team.
30
     *
31
     * @var string
32
     */
33
    public $path;
34
35
    /**
36
     * Create a new resource instance.
37
     *
38
     * @param array $attributes
39
     */
40 1
    public function __construct(array $attributes)
41
    {
42 1
        $this->id = $attributes['id'];
43 1
        $this->name = $attributes['name'];
44 1
        $this->description = $attributes['description'] ?? '';
45 1
        $this->path = $attributes['path'];
46
    }
47
}
48