1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
MarketDiscount.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Rest\Infrastructure\Market
;
4
5
class
MarketDiscount
6
{
7
public
function
__construct
(
8
private
bool
$isAvailable
,
9
private
int
$percentage,
10
private
string
$termsUrl,
11
)
12
{}
13
17
public
function
isAvailable
(): bool
18
{
19
return
$this->isAvailable
;
20
}
21
25
public
function
getPercentage
(): int
26
{
27
return
$this->percentage;
28
}
29
33
public
function
getTermsUrl
(): string
34
{
35
return
$this->termsUrl;
36
}
37
38
public
function
toArray
():
array
39
{
40
return
[
41
'isAvailable'
=> $this->
isAvailable
(),
42
'percentage'
=> $this->
getPercentage
(),
43
'termsUrl'
=> $this->
getTermsUrl
(),
44
];
45
}
46
}
Bitrix\Rest\Infrastructure\Market\MarketDiscount
Определения
MarketDiscount.php:6
Bitrix\Rest\Infrastructure\Market\MarketDiscount\getTermsUrl
getTermsUrl()
Определения
MarketDiscount.php:33
Bitrix\Rest\Infrastructure\Market\MarketDiscount\toArray
toArray()
Определения
MarketDiscount.php:38
Bitrix\Rest\Infrastructure\Market\MarketDiscount\getPercentage
getPercentage()
Определения
MarketDiscount.php:25
Bitrix\Rest\Infrastructure\Market\MarketDiscount\__construct
__construct(private bool $isAvailable, private int $percentage, private string $termsUrl,)
Определения
MarketDiscount.php:7
Bitrix\Rest\Infrastructure\Market\MarketDiscount\isAvailable
isAvailable()
Определения
MarketDiscount.php:17
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$isAvailable
$isAvailable
Определения
.description.php:12
Bitrix\Rest\Infrastructure\Market
Определения
MarketDiscount.php:3
bitrix
modules
rest
lib
Infrastructure
Market
MarketDiscount.php
Создано системой
1.14.0