2016-03-04 19:23:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface Bundleable
|
|
|
|
*
|
|
|
|
* Indicates that an object can be bundled.
|
|
|
|
*/
|
|
|
|
interface Bundleable {
|
|
|
|
|
|
|
|
/**
|
2017-08-09 15:20:55 +00:00
|
|
|
* @return bool Whether this object can be bundled.
|
2016-03-04 19:23:02 +00:00
|
|
|
*/
|
|
|
|
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();
|
|
|
|
}
|