Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
yandexaudiencestatusnormalizer.php
1<?php
2
4
6
8{
9 protected const AUDIENCE_TYPE_CODE = AudienceYandex::TYPE_CODE;
10
13 'is_processed' => self::NORMALIZED_STATUS_PROCESSING,
14 'processed' => self::NORMALIZED_STATUS_READY,
15 'processing_failed' => self::NORMALIZED_STATUS_OTHER,
18 ];
19
20 public function isEnabled(?string $originalStatus): bool
21 {
22 if ($this->getNormalizedStatus($originalStatus) === self::NORMALIZED_STATUS_READY)
23 {
24 return true;
25 }
26
27 return $originalStatus === 'few_data';
28 }
29}