瀏覽代碼

Correctif static solver

packProduct
Fabien Normand 2 年之前
父節點
當前提交
4c449b907a
共有 4 個檔案被更改,包括 10 行新增10 行删除
  1. +1
    -1
      Solver/Order/OrderShopSolver.php
  2. +7
    -7
      Solver/Product/ProductFamilySolver.php
  3. +1
    -1
      Solver/Reduction/ReductionCartSolver.php
  4. +1
    -1
      Solver/Statistic/StatisticSolver.php

+ 1
- 1
Solver/Order/OrderShopSolver.php 查看文件

@@ -33,7 +33,7 @@ class OrderShopSolver
$this->productSolver = $productSolver;
}

public function getTypeDeliveryChoices()
public static function getTypeDeliveryChoices()
{
return [
OrderShopModel::DELIVERY_TYPE_HOME,

+ 7
- 7
Solver/Product/ProductFamilySolver.php 查看文件

@@ -27,7 +27,7 @@ class ProductFamilySolver
}


public function getBehaviorCountStockChoices(): array
public static function getBehaviorCountStockChoices(): array
{
return [
ProductFamilyModel::BEHAVIOR_COUNT_STOCK_BY_MEASURE,
@@ -36,7 +36,7 @@ class ProductFamilySolver
];
}

public function getWaringMessageTypeChoices(): array
public static function getWaringMessageTypeChoices(): array
{
return [
ProductFamilyModel::WARNING_MESSAGE_TYPE_ERROR,
@@ -46,7 +46,7 @@ class ProductFamilySolver
];
}

public function getBehaviorAddToCartChoices(): array
public static function getBehaviorAddToCartChoices(): array
{
return [
ProductFamilyModel::BEHAVIOR_ADD_TO_CART_MULTIPLE,
@@ -54,7 +54,7 @@ class ProductFamilySolver
];
}

public function getBehaviorPriceChoices(): array
public static function getBehaviorPriceChoices(): array
{
return [
ProductFamilyModel::BEHAVIOR_PRICE_BY_PIECE,
@@ -62,7 +62,7 @@ class ProductFamilySolver
];
}

public function getTypeExpirationDateChoices(): array
public static function getTypeExpirationDateChoices(): array
{
return [
ProductFamilyModel::TYPE_EXPIRATION_DATE_DLC,
@@ -72,7 +72,7 @@ class ProductFamilySolver
}


public function getBehaviorExpirationDateChoices(): array
public static function getBehaviorExpirationDateChoices(): array
{
return [
ProductFamilyModel::BEHAVIOR_EXPIRATION_DATE_BY_PRODUCT_FAMILY,
@@ -81,7 +81,7 @@ class ProductFamilySolver
}


public function getBehaviorDisplaySaleChoices(): array
public static function getBehaviorDisplaySaleChoices(): array
{
return [
ProductFamilyModel::BEHAVIOR_DISPLAY_SALE_BY_MEASURE,

+ 1
- 1
Solver/Reduction/ReductionCartSolver.php 查看文件

@@ -46,7 +46,7 @@ class ReductionCartSolver
}


public function getAppliedToChoices()
public static function getAppliedToChoices()
{
return [
// ReductionCartModel::APPLIED_TO_DELIVERY,

+ 1
- 1
Solver/Statistic/StatisticSolver.php 查看文件

@@ -8,7 +8,7 @@ class StatisticSolver
const INTERVAL_WEEK = 'W';
const INTERVAL_MONTH = 'M';

public function getIntervalChoices()
public static function getIntervalChoices()
{
return [
self::INTERVAL_DAY,

Loading…
取消
儲存