Passed
Branch new-version (f6fba9)
by Jeroen
02:15
created

Note::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace JeroenDesloovere\VCard\Property;
4
5
use JeroenDesloovere\VCard\Formatter\Property\NoteFormatter;
6
use JeroenDesloovere\VCard\Formatter\Property\PropertyFormatterInterface;
7
8
class Note implements PropertyInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    private $value;
14
15
    public function __construct(string $value)
16
    {
17
        $this->value = $value;
18
    }
19
20
    public function getValue(): string
21
    {
22
        return $this->value;
23
    }
24
25
    public function getFormatter(): PropertyFormatterInterface
26
    {
27
        return new NoteFormatter($this);
28
    }
29
30
    public function getNode(): string
31
    {
32
        return 'NOTE';
33
    }
34
35
    public function isAllowedMultipleTimes(): bool
36
    {
37
        return false;
38
    }
39
}
40