Passed
Branch 2.0.0-dev (0b2b04)
by Jeroen
02:39
created

Logo   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getParser() 0 3 1
A getFormatter() 0 3 1
A isAllowedMultipleTimes() 0 3 1
A getNode() 0 3 1
1
<?php
2
3
namespace JeroenDesloovere\VCard\Property;
4
5
use JeroenDesloovere\VCard\Formatter\Property\NodeFormatterInterface;
6
use JeroenDesloovere\VCard\Formatter\Property\LogoFormatter;
7
use JeroenDesloovere\VCard\Parser\Property\NodeParserInterface;
8
use JeroenDesloovere\VCard\Parser\Property\LogoParser;
9
use JeroenDesloovere\VCard\Property\Value\ImageValue;
10
11
final class Logo extends ImageValue implements PropertyInterface, NodeInterface
12
{
13
    public function getFormatter(): NodeFormatterInterface
14
    {
15
        return new LogoFormatter($this);
16
    }
17
18
    public static function getNode(): string
19
    {
20
        return 'LOGO';
21
    }
22
23
    public static function getParser(): NodeParserInterface
24
    {
25
        return new LogoParser();
26
    }
27
28
    public function isAllowedMultipleTimes(): bool
29
    {
30
        return false;
31
    }
32
}
33