aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/Emptiable.php
blob: d206aaacb0c60a9753a47b0c89a8a88e772c99dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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 class alias since 1.41 */
class_alias( Emptiable::class, 'MediaWiki\\Emptiable' );