You are here

interface StorageInterface in XHProf 8

Provides interface for storage.

Hierarchy

Expanded class hierarchy of StorageInterface

All classes that implement StorageInterface

1 file declares its use of StorageInterface
Profiler.php in src/Profiler.php
1 string reference to 'StorageInterface'
xhprof.services.yml in ./xhprof.services.yml
xhprof.services.yml
1 service uses StorageInterface
xhprof.storage in ./xhprof.services.yml
Drupal\xhprof\XHProfLib\Storage\StorageInterface

File

src/XHProfLib/Storage/StorageInterface.php, line 8

Namespace

Drupal\xhprof\XHProfLib\Storage
View source
interface StorageInterface {

  /**
   * Returns a list of stored runs.
   *
   * @todo Add paging.
   *
   * @return array
   *   The array of metadata for each run.
   */
  public function getRuns();

  /**
   * Loads run.
   *
   * @param string $run_id
   *   The run ID.
   * @param string $namespace
   *   The run namespace.
   *
   * @return \Drupal\xhprof\XHProfLib\Run
   *   The value object of the run.
   */
  public function getRun($run_id, $namespace);

  /**
   * Saves run data.
   *
   * @param array $data
   *   The data.
   * @param string $namespace
   *   The run namespace.
   * @param string $run_id
   *   The run ID.
   *
   * @return string
   *   The run ID.
   */
  public function saveRun($data, $namespace, $run_id);

  /**
   * Returns run name.
   *
   * @return string
   *   The name.
   */
  public function getName();

}

Members

Namesort descending Modifiers Type Description Overrides
StorageInterface::getName public function Returns run name. 1
StorageInterface::getRun public function Loads run. 1
StorageInterface::getRuns public function Returns a list of stored runs. 1
StorageInterface::saveRun public function Saves run data. 1