Completed
Push — master ( ee0bf4...f89977 )
by Hannes
03:46 queued 02:03
created

Agent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace byrokrat\billing;
6
7
/**
8
 * Basic implementation of AgentInterface
9
 */
10
class Agent implements AgentInterface
11
{
12
    use AttributesTrait;
13
14
    /**
15
     * @var string
16
     */
17
    private $name;
18
19 1
    public function __construct(string $name)
20
    {
21 1
        $this->name = $name;
22 1
    }
23
24 1
    public function getName(): string
25
    {
26 1
        return $this->name;
27
    }
28
}
29