mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-14 11:16:16 +00:00
e576cbdca0
Change-Id: If1405788a4adb550e8a7e8c58b0c2c55cf10ea67
30 lines
645 B
PHP
30 lines
645 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Notifications;
|
|
|
|
/**
|
|
* Indicates that an object can be bundled.
|
|
*/
|
|
interface Bundleable {
|
|
|
|
/**
|
|
* @return bool Whether this object can be bundled.
|
|
*/
|
|
public function canBeBundled();
|
|
|
|
/**
|
|
* @return string objects with the same bundling key can be bundled together
|
|
*/
|
|
public function getBundlingKey();
|
|
|
|
/**
|
|
* @param Bundleable[] $bundleables other object that have been bundled with this one
|
|
*/
|
|
public function setBundledElements( array $bundleables );
|
|
|
|
/**
|
|
* @return mixed the key by which this object should be sorted during the bundling process
|
|
*/
|
|
public function getSortingKey();
|
|
}
|