Author::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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