2018-01-21 20:52:43 +00:00
|
|
|
<?php
|
|
|
|
|
2022-11-13 06:43:40 +00:00
|
|
|
namespace MediaWiki\Extension\Notifications;
|
|
|
|
|
2018-01-21 20:52:43 +00:00
|
|
|
/**
|
|
|
|
* Interface providing list of contained values and an optional cache key to go along with it.
|
|
|
|
*/
|
2022-11-13 06:43:40 +00:00
|
|
|
interface ContainmentList {
|
2018-01-21 20:52:43 +00:00
|
|
|
/**
|
2018-08-13 07:25:22 +00:00
|
|
|
* @return string[] The values contained within this list.
|
2018-01-21 20:52:43 +00:00
|
|
|
*/
|
|
|
|
public function getValues();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string A string suitable for appending to the cache key prefix to facilitate
|
|
|
|
* cache busting when the underlying data changes, or a blank string if
|
|
|
|
* not relevant.
|
|
|
|
*/
|
|
|
|
public function getCacheKey();
|
|
|
|
}
|