Author   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 30
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php declare(strict_types=1);
2
3
4
namespace Bigwhoop\Trumpet\Config;
5
6
final class Author
7
{
8
    /** @var string */
9
    public $name = '';
10
11
    /** @var string */
12
    public $company = '';
13
14
    /** @var string */
15
    public $email = '';
16
17
    /** @var string */
18
    public $twitter = '';
19
20
    /** @var string */
21
    public $website = '';
22
23
    /** @var string */
24
    public $skype = '';
25
26 10
    public function __construct(string $name)
27
    {
28 10
        $this->name = $name;
29 10
    }
30
    
31
    public function __toString(): string
32
    {
33
        return $this->name;
34
    }
35
}
36