Example #1
0
 public static function getPrices()
 {
     if (null === self::$prices) {
         self::$prices = json_decode(file_get_contents(sprintf('%s%s', __DIR__, self::JSON_PRICE_RESOURCE)), true);
     }
     return self::$prices;
 }
Example #2
0
 public static function getPrices()
 {
     if (null === self::$prices) {
         self::$prices = json_decode(Colissimo::getConfigValue(ColissimoConfigValue::PRICES, null), true);
     }
     return self::$prices;
 }