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