1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
producttypemapper.php
См. документацию.
1<?php
2
4
7
9{
10 public static function getType(int $catalogType): ?int
11 {
12 if ($catalogType === Catalog\ProductTable::TYPE_SET)
13 {
15 }
16
17 if ($catalogType === Catalog\ProductTable::TYPE_SERVICE)
18 {
20 }
21
22 return null;
23 }
24
25 public static function getCatalogType(?int $saleType): ?int
26 {
27 if ($saleType === Sale\BasketItem::TYPE_SET)
28 {
30 }
31
32 if ($saleType === Sale\BasketItem::TYPE_SERVICE)
33 {
35 }
36
37 return null;
38 }
39}
const TYPE_SET
Определения product.php:71
const TYPE_SERVICE
Определения product.php:76
const TYPE_SET
Определения basketitem.php:28
const TYPE_SERVICE
Определения basketitem.php:29
static getType(int $catalogType)
Определения producttypemapper.php:10
static getCatalogType(?int $saleType)
Определения producttypemapper.php:25