Passed
Branch 2.0.0-dev (b7b9ad)
by Jeroen
02:54
created

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