mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-13 17:57:21 +00:00
31 lines
624 B
PHP
31 lines
624 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Interface Bundleable
|
||
|
*
|
||
|
* Indicates that an object can be bundled.
|
||
|
*/
|
||
|
interface Bundleable {
|
||
|
|
||
|
/**
|
||
|
* @return boolean 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( $bundleables );
|
||
|
|
||
|
/**
|
||
|
* @return mixed the key by which this object should be sorted during the bundling process
|
||
|
*/
|
||
|
public function getSortingKey();
|
||
|
}
|
||
|
|