You are here

private static function Braintree_Configuration::set in Commerce Braintree 7

1 call to Braintree_Configuration::set()
Braintree_Configuration::setOrGet in braintree_php/lib/Braintree/Configuration.php

File

braintree_php/lib/Braintree/Configuration.php, line 103

Class

Braintree_Configuration
acts as a registry for config data.

Code

private static function set($key, $value) {

  // this method will raise an exception on invalid data
  self::validate($key, $value);

  // set the value in the cache
  self::$_cache[$key] = $value;
}