Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
oldaudiencestatusnormalizer.php
1
<?php
2
3
namespace
Bitrix\Seo\Retargeting\Audience\Status
;
4
5
class
OldAudienceStatusNormalizer
extends
AbstractAudienceStatusNormalizer
6
{
7
public
const
PROCESSING_ORIGINAL_STATUS
=
'is_processed'
;
8
9
public
function
getNormalizedStatus
(?
string
$originalStatus): string
10
{
11
return
$originalStatus === self::PROCESSING_ORIGINAL_STATUS
12
?
self::NORMALIZED_STATUS_PROCESSING
13
:
self::NORMALIZED_STATUS_READY
14
;
15
}
16
17
public
function
isEnabled
(?
string
$originalStatus): bool
18
{
19
return
$this->
getNormalizedStatus
($originalStatus) ===
self::NORMALIZED_STATUS_READY
;
20
}
21
}
Bitrix\Seo\Retargeting\Audience\Status\AbstractAudienceStatusNormalizer
Definition
abstractaudiencestatusnormalizer.php:8
Bitrix\Seo\Retargeting\Audience\Status\AbstractAudienceStatusNormalizer\NORMALIZED_STATUS_PROCESSING
const NORMALIZED_STATUS_PROCESSING
Definition
abstractaudiencestatusnormalizer.php:12
Bitrix\Seo\Retargeting\Audience\Status\AbstractAudienceStatusNormalizer\NORMALIZED_STATUS_READY
const NORMALIZED_STATUS_READY
Definition
abstractaudiencestatusnormalizer.php:11
Bitrix\Seo\Retargeting\Audience\Status\OldAudienceStatusNormalizer
Definition
oldaudiencestatusnormalizer.php:6
Bitrix\Seo\Retargeting\Audience\Status\OldAudienceStatusNormalizer\getNormalizedStatus
getNormalizedStatus(?string $originalStatus)
Definition
oldaudiencestatusnormalizer.php:9
Bitrix\Seo\Retargeting\Audience\Status\OldAudienceStatusNormalizer\PROCESSING_ORIGINAL_STATUS
const PROCESSING_ORIGINAL_STATUS
Definition
oldaudiencestatusnormalizer.php:7
Bitrix\Seo\Retargeting\Audience\Status\OldAudienceStatusNormalizer\isEnabled
isEnabled(?string $originalStatus)
Definition
oldaudiencestatusnormalizer.php:17
Bitrix\Seo\Retargeting\Audience\Status
Definition
abstractaudiencestatusnormalizer.php:3
modules
seo
lib
retargeting
audience
status
oldaudiencestatusnormalizer.php
Создано системой
1.10.0