Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
audiencestatusnormalizerfactory.php
1<?php
2
4
8
10{
11 public static function build(string $typeCode, string $messageCode): AudienceStatusNormalizerInterface
12 {
13 switch (true)
14 {
15 case Audience::TYPE_YANDEX === $typeCode && $messageCode === MessageYa::CODE:
17 case Audience::TYPE_YANDEX === $typeCode && $messageCode === MessageLookalikeYandex::CODE:
19 default:
20 return new OldAudienceStatusNormalizer();
21 }
22 }
23}