admin/app/common/modules/stock/BaseNoDeductStock.php

25 lines
429 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\common\modules\stock;
use app\common\models\Order;
abstract class BaseNoDeductStock
{
/**
* @var Order
*/
protected $order;
protected $param;
public function __construct(Order $order,$param = [])
{
$this->order = $order;
$this->param = $param;
}
//是否扣除true原逻辑扣除false不扣除
abstract public function isDeduct(): bool;
}