Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
normalizer.php
1
<?
2
namespace
Bitrix\Sale\Location\Normalizer
;
3
9
class
Normalizer
implements
INormalizer
10
{
12
protected
$normalizers
= [];
13
18
public
function
__construct
(array $normalizers)
19
{
20
foreach
($normalizers as $normalizer)
21
{
22
$this->
addNormalizer
($normalizer);
23
}
24
}
25
29
protected
function
addNormalizer
(
INormalizer
$normalizer)
30
{
31
$this->normalizers[] = $normalizer;
32
}
33
38
public
function
normalize($string)
39
{
40
$result = $string;
41
43
foreach
($this->normalizers as $normalizer)
44
{
45
$result = $normalizer->
normalize
($result);
46
}
47
48
return
$result;
49
}
50
}
Bitrix\Sale\Location\Normalizer\Normalizer
Definition
normalizer.php:10
Bitrix\Sale\Location\Normalizer\Normalizer\$normalizers
$normalizers
Definition
normalizer.php:12
Bitrix\Sale\Location\Normalizer\Normalizer\addNormalizer
addNormalizer(INormalizer $normalizer)
Definition
normalizer.php:29
Bitrix\Sale\Location\Normalizer\Normalizer\__construct
__construct(array $normalizers)
Definition
normalizer.php:18
Bitrix\Sale\Location\Normalizer\INormalizer
Definition
inormalizer.php:10
Bitrix\Sale\Location\Normalizer\INormalizer\normalize
normalize($name)
Bitrix\Sale\Location\Normalizer
Definition
builder.php:3
modules
sale
lib
location
normalizer
normalizer.php
Создано системой
1.10.0