1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
factory.php
См. документацию.
1<?php
2namespace Bitrix\Sale\Exchange\Integration\Service\User;
3
4
5use Bitrix\Sale\Exchange\Integration\Service\User\Entity;
6
7class Factory
8{
9 static public function create($typeId)
10 {
11 if($typeId == EntityType::TYPE_I)
12 {
13 return new Entity\Contact();
14 }
15 elseif($typeId == EntityType::TYPE_E)
16 {
17 return new Entity\Company();
18 }
19 else
20 {
21 throw new \Bitrix\Main\NotSupportedException("Client type: '".$typeId."' is not supported in current context");
22 }
23 }
24}
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393