Passed
Push — new-version ( b26f83...154590 )
by Jeroen
02:38
created

Birthdate::isAllowedMultipleTimes()   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\BirthdateFormatter;
6
use JeroenDesloovere\VCard\Formatter\Property\NodeFormatterInterface;
7
use JeroenDesloovere\VCard\Parser\Property\BirthdateParser;
8
use JeroenDesloovere\VCard\Parser\Property\NodeParserInterface;
9
10
final class Birthdate extends DateTimeValue implements PropertyInterface, SimpleNodeInterface
11
{
12
    public function getFormatter(): NodeFormatterInterface
13
    {
14
        return new BirthdateFormatter($this);
15
    }
16
17
    public static function getNode(): string
18
    {
19
        return 'BDAY';
20
    }
21
22
    public static function getParser(): NodeParserInterface
23
    {
24
        return new BirthdateParser();
25
    }
26
27
    public function isAllowedMultipleTimes(): bool
28
    {
29
        return false;
30
    }
31
}
32