mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 00:05:29 +00:00
aaf061c725
The following sniffs are failing and were disabled: * MediaWiki.Commenting.FunctionComment.ExtraParamComment * MediaWiki.Commenting.FunctionComment.MissingParamComment * MediaWiki.Commenting.FunctionComment.MissingParamName * MediaWiki.Commenting.FunctionComment.MissingParamTag * MediaWiki.Commenting.FunctionComment.MissingReturn * MediaWiki.Commenting.FunctionComment.ParamNameNoMatch * MediaWiki.Commenting.FunctionComment.WrongStyle * MediaWiki.FunctionComment.Missing.Protected * MediaWiki.FunctionComment.Missing.Public * MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName * MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment Change-Id: I8401abf121a7413fa191d7bc535e0ddd6cf8c3f7
30 lines
623 B
PHP
30 lines
623 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();
|
|
}
|