mediawiki-extensions-Echo/includes/Bundleable.php
Thiemo Kreuz 0efef4faf3 Add strict "array" type hints to code expecting arrays
I found candidates for this by looking for parameters names that end
with a plural "s".

Change-Id: I61c706eb4dfbdadceb0129afd724e6ce1eb4f4a8
2019-10-24 15:18:58 +00:00

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();
}