AbstractField::getComment()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Artack\Dsn\Field;
6
7
class AbstractField implements FieldInterface
8
{
9
    private $name;
10
    private $comment;
11
12 88
    public function __construct(string $name, ?string $comment)
13
    {
14 88
        $this->name = $name;
15 88
        $this->comment = $comment;
16 88
    }
17
18 14
    public function getName(): string
19
    {
20 14
        return $this->name;
21
    }
22
23 4
    public function getComment(): ?string
24
    {
25 4
        return $this->comment;
26
    }
27
}
28