Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
parserpropertytype.php
1
<?php
2
3
4
namespace
Bitrix\Calendar\ICal\Parser
;
5
6
7
class
ParserPropertyType
8
{
12
private
$value;
16
private
$name;
20
private
$parameters;
21
26
public
static
function
createInstance
(
string
$name):
ParserPropertyType
27
{
28
return
new
self
($name);
29
}
30
31
public
function
__construct
($name)
32
{
33
$this->name = $name;
34
}
35
39
public
function
getValue
(): ?string
40
{
41
return
$this->value;
42
}
43
47
public
function
getOriginalValue
(): ?string
48
{
49
return
$this->value;
50
}
51
52
public
function
getName
(): string
53
{
54
return
$this->name;
55
}
56
61
public
function
setValue
(?
string
$value):
ParserPropertyType
62
{
63
$this->value = $value;
64
65
return
$this;
66
}
67
72
public
function
addParameters
(array $parameters):
ParserPropertyType
73
{
74
foreach
($parameters as $key => $parameter)
75
{
76
$this->
addParameter
($key, $parameter);
77
}
78
79
return
$this;
80
}
81
87
public
function
addParameter
(
string
$key,
string
$parameter):
ParserPropertyType
88
{
89
$this->parameters[$key] = $parameter;
90
91
return
$this;
92
}
93
94
public
function
getParameterValueByName
(
string
$name): ?string
95
{
96
return
$this->parameters[$name] ??
null
;
97
}
98
}
Bitrix\Calendar\ICal\Parser\ParserPropertyType
Definition
parserpropertytype.php:8
Bitrix\Calendar\ICal\Parser\ParserPropertyType\addParameter
addParameter(string $key, string $parameter)
Definition
parserpropertytype.php:87
Bitrix\Calendar\ICal\Parser\ParserPropertyType\createInstance
static createInstance(string $name)
Definition
parserpropertytype.php:26
Bitrix\Calendar\ICal\Parser\ParserPropertyType\getName
getName()
Definition
parserpropertytype.php:52
Bitrix\Calendar\ICal\Parser\ParserPropertyType\__construct
__construct($name)
Definition
parserpropertytype.php:31
Bitrix\Calendar\ICal\Parser\ParserPropertyType\addParameters
addParameters(array $parameters)
Definition
parserpropertytype.php:72
Bitrix\Calendar\ICal\Parser\ParserPropertyType\getOriginalValue
getOriginalValue()
Definition
parserpropertytype.php:47
Bitrix\Calendar\ICal\Parser\ParserPropertyType\getParameterValueByName
getParameterValueByName(string $name)
Definition
parserpropertytype.php:94
Bitrix\Calendar\ICal\Parser\ParserPropertyType\getValue
getValue()
Definition
parserpropertytype.php:39
Bitrix\Calendar\ICal\Parser\ParserPropertyType\setValue
setValue(?string $value)
Definition
parserpropertytype.php:61
Bitrix\Calendar\ICal\Parser
Definition
calendar.php:4
modules
calendar
lib
ical
parser
parserpropertytype.php
Создано системой
1.10.0