original_string: public static function consume($var)
      {
          if (strpos($var, '.') === false) {
              if (!isset(static::$_values[$var])) {
                  return null;
              }
              $value = static::$_values[$var];
              unset(static::$_values[$var]);
  
              return $value;
          }
          $value = Hash::get(static::$_values, $var);
          static::delete($var);
  
          return $value;
      }
code: public static function consume($var)
      {
          if (strpos($var, '.') === false) {
              if (!isset(static::$_values[$var])) {
                  return null;
              }
              $value = static::$_values[$var];
              unset(static::$_values[$var]);
  
              return $value;
          }
          $value = Hash::get(static::$_values, $var);
          static::delete($var);
  
          return $value;
      }
code_tokens: public static function consume ( $ var ) { if ( strpos ( $ var , '.' ) === false ) { if ( ! isset ( static :: $ _values [ $ var ] ) ) { return null ; } $ value = static :: $ _values [ $ var ] ; unset ( static :: $ _values [ $ var ] ) ; return $ value ; } $ value = Hash :: get ( static :: $ _values , $ var ) ; static :: delete ( $ var ) ; return $ value ; }
docstring: Used to read and delete a variable from Configure.
  
  This is primarily used during bootstrapping to move configuration data
  out of configure into the various other classes in CakePHP.
  
  @param string $var The key to read and remove.
  @return array|string|null
docstring_tokens: Used to read and delete a variable from Configure .