Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
increasestorequantityaction.php
1
<?php
2
3
namespace
Bitrix\Catalog\Document\Action\Store
;
4
5
use
Bitrix\Catalog\Document\Action
;
6
use
Bitrix\Main\Result
;
7
11
class
IncreaseStoreQuantityAction
implements
Action
12
{
13
use
BaseStoreQuantityAction
;
14
18
public
function
canExecute
():
Result
19
{
20
return
new
Result
();
21
}
22
26
protected
function
getProductAmountNew
(): float
27
{
28
return
$this->
getStoreProductAmount
() +
$this->amount
;
29
}
30
}
Bitrix\Catalog\Document\Action\Store\IncreaseStoreQuantityAction
Definition
increasestorequantityaction.php:12
Bitrix\Catalog\Document\Action\Store\IncreaseStoreQuantityAction\getProductAmountNew
getProductAmountNew()
Definition
increasestorequantityaction.php:26
Bitrix\Catalog\Document\Action\Store\IncreaseStoreQuantityAction\canExecute
canExecute()
Definition
increasestorequantityaction.php:18
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\Result
Definition
result.php:14
Bitrix\Catalog\Document\Action
Definition
action.php:11
Bitrix\Catalog\Document\Action\Store
Definition
basestorequantityaction.php:3
Bitrix\Catalog\Document\Action\Store\BaseStoreQuantityAction
trait BaseStoreQuantityAction
Definition
basestorequantityaction.php:23
Bitrix\Catalog\Document\Action\Store\$amount
$amount
Definition
basestorequantityaction.php:39
Bitrix\Catalog\Document\Action
Bitrix\Catalog\Document\Action\getStoreProductAmount
getStoreProductAmount()
Definition
productandstoreinfo.php:119
modules
catalog
lib
document
action
store
increasestorequantityaction.php
Создано системой
1.10.0