| 1 | <?php |
| 2 | namespace MediaWiki\Libs; |
| 3 | |
| 4 | /** |
| 5 | * An interface to check for emptiness of an object |
| 6 | */ |
| 7 | interface Emptiable { |
| 8 | |
| 9 | /** |
| 10 | * Check if object is empty |
| 11 | * @return bool Is it empty |
| 12 | */ |
| 13 | public function isEmpty(); |
| 14 | |
| 15 | } |
| 16 | |
| 17 | /** @deprecated class alias since 1.41 */ |
| 18 | class_alias( Emptiable::class, 'MediaWiki\\Emptiable' ); |