interface StorageInterface in XHProf 8
Provides interface for storage.
Hierarchy
- interface \Drupal\xhprof\XHProfLib\Storage\StorageInterface
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'
1 service uses StorageInterface
File
- src/
XHProfLib/ Storage/ StorageInterface.php, line 8
Namespace
Drupal\xhprof\XHProfLib\StorageView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StorageInterface:: |
public | function | Returns run name. | 1 |
StorageInterface:: |
public | function | Loads run. | 1 |
StorageInterface:: |
public | function | Returns a list of stored runs. | 1 |
StorageInterface:: |
public | function | Saves run data. | 1 |