Browse Source

Merge branch 'develop'

master
Fabien Normand 3 years ago
parent
commit
37a04f97a3
4 changed files with 10 additions and 10 deletions
  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 View File

@@ -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 View File

@@ -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 View File

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


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

+ 1
- 1
Solver/Statistic/StatisticSolver.php View File

@@ -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…
Cancel
Save