Owner   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A setType() 0 5 1
A getName() 0 3 1
A getType() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dandelion\Configuration\Vcs;
6
7
class Owner
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $type;
13
14
    /**
15
     * @var string
16
     */
17
    protected $name;
18
19
    /**
20
     * @return string
21
     */
22
    public function getType(): string
23
    {
24
        return $this->type;
25
    }
26
27
    /**
28
     * @param string $type
29
     *
30
     * @return \Dandelion\Configuration\Vcs\Owner
31
     */
32
    public function setType(string $type): Owner
33
    {
34
        $this->type = $type;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getName(): string
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @param string $name
49
     *
50
     * @return \Dandelion\Configuration\Vcs\Owner
51
     */
52
    public function setName(string $name): Owner
53
    {
54
        $this->name = $name;
55
56
        return $this;
57
    }
58
}
59