mediawiki-extensions-Echo/includes/Bundleable.php
Umherirrender 5b4730c9bc Improve some parameter docs
Change-Id: Ie71fb080926781f2905e6264be060203c56185ea
2017-08-09 17:21:10 +02:00

30 lines
620 B
PHP

<?php
/**
* Interface Bundleable
*
* 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( $bundleables );
/**
* @return mixed the key by which this object should be sorted during the bundling process
*/
public function getSortingKey();
}