forked from jeroendesloovere/vcard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNote.php
34 lines (27 loc) · 859 Bytes
/
Note.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\NoteFormatter;
use JeroenDesloovere\VCard\Formatter\Property\NodeFormatterInterface;
use JeroenDesloovere\VCard\Parser\Property\NodeParserInterface;
use JeroenDesloovere\VCard\Parser\Property\NoteParser;
use JeroenDesloovere\VCard\Property\Value\StringValue;
final class Note extends StringValue implements PropertyInterface, SimpleNodeInterface
{
public function getFormatter(): NodeFormatterInterface
{
return new NoteFormatter($this);
}
public static function getNode(): string
{
return 'NOTE';
}
public static function getParser(): NodeParserInterface
{
return new NoteParser();
}
public function isAllowedMultipleTimes(): bool
{
return false;
}
}