forked from jeroendesloovere/vcard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogo.php
34 lines (27 loc) · 851 Bytes
/
Logo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
namespace JeroenDesloovere\VCard\Property;
use JeroenDesloovere\VCard\Formatter\Property\NodeFormatterInterface;
use JeroenDesloovere\VCard\Formatter\Property\LogoFormatter;
use JeroenDesloovere\VCard\Parser\Property\NodeParserInterface;
use JeroenDesloovere\VCard\Parser\Property\LogoParser;
use JeroenDesloovere\VCard\Property\Value\ImageValue;
final class Logo extends ImageValue implements PropertyInterface, NodeInterface
{
public function getFormatter(): NodeFormatterInterface
{
return new LogoFormatter($this);
}
public static function getNode(): string
{
return 'LOGO';
}
public static function getParser(): NodeParserInterface
{
return new LogoParser();
}
public function isAllowedMultipleTimes(): bool
{
return false;
}
}