You are here

public function Module::getCallCount in AmazonS3 7.2

Get the call count for a given key.

Parameters

string $key:

Return value

int The number of times $key has been called.

File

tests/DrupalAdapter/Module.php, line 59

Class

Module
Stub for module.inc functions, with a call counter to log each call.

Namespace

Drupal\amazons3Test\DrupalAdapter

Code

public function getCallCount($key) {
  if (isset($this->callCount[$key])) {
    return $this->callCount[$key];
  }
  return 0;
}