Inital commit

This commit is contained in:
2020-11-19 15:36:28 +01:00
parent 71f32f83d3
commit 66ce4ee218
18077 changed files with 2166122 additions and 35184 deletions

View File

@@ -0,0 +1,52 @@
<?php
/**
* Created by PhpStorm.
* User: audreymartel
* Date: 27/07/2018
* Time: 16:27
*/
namespace OrderCreation;
class OrderCreationConfiguration
{
const CONFIG_KEY_DELIVERY_MODULE_ID = 'order_creation_delivery_module_id';
const SOCOLISSIMO_MODE = 'order_creation_socolissimo_mode';
const LIST_PAYMENT_MODULE = 'order_creation_list_payment_module';
/**
* @param $moduleId integer | null
*/
public static function setDeliveryModuleId($moduleId)
{
OrderCreation::setConfigValue(self::CONFIG_KEY_DELIVERY_MODULE_ID, $moduleId);
}
public static function setSoColissimoMode($mode)
{
OrderCreation::setConfigValue(self::SOCOLISSIMO_MODE, $mode);
}
public static function setlistPaymentModule($list)
{
OrderCreation::setConfigValue(self::LIST_PAYMENT_MODULE, json_encode($list));
}
public static function getSoColissimoMode()
{
return OrderCreation::getConfigValue(self::SOCOLISSIMO_MODE, null);
}
public static function getlistPaymentModule()
{
return OrderCreation::getConfigValue(self::LIST_PAYMENT_MODULE, json_encode([]));
}
/**
* @return integer | null
*/
public static function getDeliveryModuleId()
{
return OrderCreation::getConfigValue(self::CONFIG_KEY_DELIVERY_MODULE_ID, null);
}
}