File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/exchange/integration/service/user/factory.php
Back
<?php namespace Bitrix\Sale\Exchange\Integration\Service\User; use Bitrix\Sale\Exchange\Integration\Service\User\Entity; class Factory { static public function create($typeId) { if($typeId == EntityType::TYPE_I) { return new Entity\Contact(); } elseif($typeId == EntityType::TYPE_E) { return new Entity\Company(); } else { throw new \Bitrix\Main\NotSupportedException("Client type: '".$typeId."' is not supported in current context"); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings