aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/Emptiable.php
blob: 8f7c86b738097ab54d91788925d1e0cb86732d73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
namespace MediaWiki\Libs;

/**
 * An interface to check for emptiness of an object
 */
interface Emptiable {

	/**
	 * Check if object is empty
	 * @return bool Is it empty
	 */
	public function isEmpty();

}

/**
 * @deprecated since 1.41
 */
class_alias( Emptiable::class, 'MediaWiki\\Emptiable' );