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

Agent::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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