mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
0efef4faf3
I found candidates for this by looking for parameters names that end with a plural "s". Change-Id: I61c706eb4dfbdadceb0129afd724e6ce1eb4f4a8
28 lines
599 B
PHP
28 lines
599 B
PHP
<?php
|
|
|
|
/**
|
|
* 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();
|
|
}
|