Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Extension\Notifications;
4
5/**
6 * Indicates that an object can be bundled.
7 */
8interface Bundleable {
9
10    /**
11     * @return bool Whether this object can be bundled.
12     */
13    public function canBeBundled();
14
15    /**
16     * @return string objects with the same bundling key can be bundled together
17     */
18    public function getBundlingKey();
19
20    /**
21     * @param Bundleable[] $bundleables other object that have been bundled with this one
22     */
23    public function setBundledElements( array $bundleables );
24
25    /**
26     * @return mixed the key by which this object should be sorted during the bundling process
27     */
28    public function getSortingKey();
29}